CN103677823B - Method and device for managing browser plug-ins - Google Patents
Method and device for managing browser plug-ins Download PDFInfo
- Publication number
- CN103677823B CN103677823B CN201310658893.4A CN201310658893A CN103677823B CN 103677823 B CN103677823 B CN 103677823B CN 201310658893 A CN201310658893 A CN 201310658893A CN 103677823 B CN103677823 B CN 103677823B
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- browser
- main frame
- loading position
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 112
- 230000008569 process Effects 0.000 claims abstract description 72
- 238000004148 unit process Methods 0.000 claims description 50
- 230000006870 function Effects 0.000 claims description 45
- 239000000284 extract Substances 0.000 claims description 18
- 238000004321 preservation Methods 0.000 claims description 17
- 238000007726 management method Methods 0.000 claims description 11
- 238000000605 extraction Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 5
- 239000000725 suspension Substances 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012384 transportation and delivery Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and device for managing browser plug-ins. The method includes the steps that when a browser is started, a browser host process is established, and the browser host process calls a browser kernel to load a main frame of the browser and webpage content displayed in the main frame; when the main frame of the browser is loaded, plug-in property files corresponding to the plug-ins installed on the browser are searched by the browser kernel; a loading position with respect to plug-in arrangement in the plug-in property files is extracted, and the loading position comprises a sidebar of the main frame; the plug-ins are loaded to the sidebar of the main frame according to the loading position. By means of the method and device for managing the browser plug-ins, the problem that plug-ins can only be loaded in a right side area of an address bar of the browser, so that the number of the plug-ins which are directly displayed is limited in the prior art can be solved, the plug-ins can be called conveniently, and plug-in accessing efficiency is improved.
Description
Technical field
The present invention relates to browser technology, and in particular to a kind of management method of browser plug-in, and browsed with one kind
The managing device of device plug-in unit.
Background technology
Browser is increasingly valued by people as the important entrance in internet.Current browser, except can be with
Browse outside webpage, various expansion plugins can also be installed, allow the function of browser itself more to enrich.For example pacify in browser
After dress PDF reads plug-in unit, pdf document function of browse can be increased for browser, user if desired reads when webpage is browsed
The file of PDF, system will automatically call PDF to read plug-in unit and specified pdf document is directly shown inside browser, so that
Expand the content that browser may browse through.
The right side area of browser address bar being displayed in the plug-in unit that browser is installed, because the size of right side area is limited more
System, the plug number that can directly show is very limited, and when beyond certain amount, the plug-in unit that can will be unable to displaying is integrated into one
Listed under individual menu, user needs first to click on the menu, then further call plug-in unit, operate cumbersome, influence access plug-in unit
Efficiency.
On the other hand, when user clicks on plug-in unit, the corresponding webpage of plug-in unit often occurs, the content of displaying is relatively simple,
For example, clicking on video display plug-in unit, the interface being shown to multiple videos or video website can be jumped out, this exhibition method is not
Beneficial to realizing quick access of the user to video, also, due to redirecting out new webpage, so as to the visit to current web page can be influenceed
Ask, make user's needs that operation is switched in multiple webpages, operation is more bothered.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the management method of the browser plug-in of problem and the managing device of corresponding browser plug-in.
According to one aspect of the present invention, there is provided a kind of management method of browser plug-in, including:
When starting browser, browser host process is created, it is described that the browser host process calls browser kernel to load
The main frame of browser and in web page contents shown in the main frame;
When the main frame of the browser is loaded, the browser kernel searches the plug-in unit pair installed on the browser
The plug-in unit property file answered;
The loading position set for the plug-in unit in the plug-in unit property file is extracted, the loading position includes described
The sidebar of main frame;
The plug-in unit is carried in the sidebar of the main frame according to the loading position.
Alternatively, methods described also includes:
The plug-in unit that the browser host process receives browser client triggering clicks on event, and calls the browser kernel
The suspended window of the displaying pin function is generated in the window of the browser.
Alternatively, the plug-in unit property file is also included for the preset HTML HTML texts of the plug-in unit
Shelves, the plug-in unit that the browser host process receives browser client triggering clicks on event, and calls browser kernel to generate displaying
The step of suspended window of pin function, includes:
The plug-in unit that the browser host process receives browser client triggering clicks on event, installs the plug-in unit and creates institute
State the corresponding plug-in unit process of plug-in unit;
The plug-in unit process initialization shows the suspended window of pin function;
The suspended window extracts preset HTML html document, and calls the browser kernel according to institute
State HTML html document and render the suspended window.
Alternatively, the right side area of the loading position also address field including the main frame, methods described also includes:
The plug-in unit is carried in the browser kernel right side of the address field of the main frame according to the loading position
Side region.
Alternatively, methods described also includes:
The browser host process receives the adjustment of loading position of the browser client by preset link to the plug-in unit,
And the main frame of the browser is reloaded according to the loading position after adjustment, the loading position after the adjustment includes described
The right side area of the address field of the sidebar of main frame or the main frame.
Alternatively, methods described also includes:
According to the loading position after being adjusted for plug-in unit, for described in the corresponding plug-in unit property file of the modification plug-in unit
The loading position that plug-in unit is set.
Alternatively, the plug-in unit is used to collect the webpage that browser client request is preserved, and also includes:
Receive browser client triggering to the preservation event of webpage shown in the main frame when, notify described inserting
Part preserve the webpage and generation movement locus from the webpage to the plug-in unit the main frame loading position
Suspended window.
Alternatively, the browser kernel possesses position acquisition interface, and the notice plug-in unit preserves webpage and generation fortune
Dynamic rail mark includes to plug-in unit from webpage the step of the suspended window of the loading position of main frame:
The browser host process notifies the corresponding plug-in unit process of the plug-in unit;
The plug-in unit process calls the plug-in unit to preserve the webpage, and calls the position acquisition interface to obtain described inserting
Loading position of the part in the main frame;
The plug-in unit process calls loading position of the browser kernel according to acquired in, and generation movement locus is from described
Preserve the suspended window of the webpage in webpage in the loading position, expression to the plug-in unit.
Alternatively, the plug-in unit includes one or more in file reading plug-in unit, application plug-in or set of applications plug-in unit;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the multiple exhibition information of documents or many
Individual document difference is corresponding to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
Alternatively, the plug-in unit property file also includes the plug-in unit icon of the access interface of the correspondence plug-in unit, described to press
The step of plug-in unit is carried in the sidebar of main frame according to loading position includes:
The browser kernel extracts the plug-in unit icon in the plug-in unit property file, and the plug-in unit icon is carried in into institute
State the sidebar of main frame.
According to another aspect of the present invention, a kind of managing device of browser plug-in is additionally provided, including:
Load-on module, for starting during browser, creates browser host process, and the browser host process calls browser
The main frame of browser described in kernel loads and in web page contents shown in the main frame;
Property file searching modul, for when the main frame of the browser is loaded, the browser kernel to search institute
State the corresponding plug-in unit property file of plug-in unit installed on browser;
Position extraction module, for extracting the loading position set for the plug-in unit in the plug-in unit property file, institute
State sidebar of the loading position including the main frame;
Plug-in unit load-on module, the sidebar for the plug-in unit to be carried in the main frame according to the loading position.
Alternatively, described device also includes:
Suspended window display module, the plug-in unit for receiving browser client triggering for the browser host process clicks on event,
And call the browser kernel that the suspended window for showing the pin function is generated in the window of the browser.
Alternatively, the plug-in unit property file is also included for the preset HTML HTML texts of the plug-in unit
Shelves, the suspended window display module includes:
Click event receiving submodule, the plug-in unit for receiving browser client triggering for the browser host process clicks on thing
Part, installs the plug-in unit and creates the corresponding plug-in unit process of the plug-in unit;
Suspended window initialization submodule, the suspended window of pin function is shown for the plug-in unit process initialization;
Document acquisition submodule, extracts preset HTML html document, and call for the suspended window
The browser kernel renders the suspended window according to the HTML html document.
Alternatively, the right side area of the loading position also address field including the main frame, the plug-in unit loads mould
Block, is additionally operable to the right side that the plug-in unit is carried in the browser kernel address field of the main frame according to the loading position
Side region.
Alternatively, described device also includes:
Position adjusting type modules, browser client is received by preset link to the plug-in unit for the browser host process
Loading position adjustment, and the main frame of the browser is reloaded according to the loading position after adjustment, after the adjustment
Loading position including the main frame sidebar or the main frame address field right side area.
Alternatively, described device also includes:
File modification module, for according to the loading position after being adjusted for plug-in unit, changing the corresponding plug-in unit of the plug-in unit
The loading position set for the plug-in unit in property file.
Alternatively, the plug-in unit is used to collect the webpage that browser client request is preserved, and described device also includes:
Preserve event processing module, for life receive browser client triggering to webpage shown in the main frame
Preservation event when, notify that the plug-in unit preserves the webpage and generation movement locus exists from the webpage to the plug-in unit
The suspended window of the loading position of the main frame.
Alternatively, the browser kernel possesses position acquisition interface, and the preservation event processing module includes:
Submodule is notified, the corresponding plug-in unit process of the plug-in unit is notified for the browser host process;
Loading position acquisition submodule, calls the plug-in unit to preserve the webpage, and call institute for the plug-in unit process
State position acquisition interface and obtain loading position of the plug-in unit in the main frame;
Suspended window generates submodule, and loading position of the browser kernel according to acquired in is called for the plug-in unit process
Put, generation movement locus preserves the suspended window of the webpage to the plug-in unit from the webpage in the loading position, expression.
Alternatively, the plug-in unit includes one or more in file reading plug-in unit, application plug-in or set of applications plug-in unit;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the multiple exhibition information of documents or many
Individual document difference is corresponding to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
Alternatively, the plug-in unit property file also includes the plug-in unit icon of the access interface of the correspondence plug-in unit, described to insert
Part load-on module, extracts the plug-in unit icon in the plug-in unit property file, by the plug-in unit specifically for the browser kernel
Icon is carried in the sidebar of the main frame.
According to the embodiment of the present invention, when browser loading browser main frame is started, the corresponding plug-in unit category of plug-in unit is searched
Property file, plug-in unit is carried in the sidebar of main frame, side according to the loading position set for plug-in unit in plug-in unit property file
The space of sidebar is larger, can show multiple plug-in units for directly invoking, and solving plug-in unit in the prior art can only be carried in browser
The right side area of address field causes the limited problem of the plug-in unit number of direct displaying, calls the easy to operate of plug-in unit, improves visit
Ask the efficiency of plug-in unit.
Using the embodiment of the present invention, when plug-in unit is clicked on, the displaying pin function is directly generated in browser window
Suspended window, directly quick access to pin function can be realized by suspended window, without opening new webpage, suspended window is simultaneously
Do not influence user to browse current web page, without carrying out webpage between handover operation.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the management method flow chart of browser plug-in according to an embodiment of the invention;
Fig. 2 shows the management method flow chart of browser plug-in in accordance with another embodiment of the present invention;
Fig. 3 shows the managing device structured flowchart of browser plug-in according to an embodiment of the invention;
Fig. 4 shows the managing device structured flowchart of browser plug-in in accordance with another embodiment of the present invention;
Fig. 5 is the schematic diagram that plug-in unit is carried in browser main frame in the embodiment of the present invention;
Fig. 6 is the corresponding suspended window schematic diagram of plug-in unit of document reading type in the embodiment of the present invention;
Fig. 7 is the suspended window schematic diagram of the plug-in unit of set of applications type in the embodiment of the present invention;
Fig. 8 is the corresponding suspended window schematic diagram of plug-in unit of application type in the embodiment of the present invention;
Fig. 9 a are the schematic diagrames of the plug-in unit setting page in the embodiment of the present invention;
Fig. 9 b be in the embodiment of the present invention plug-in unit page is set call schematic diagram.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The embodiment of the present invention can apply to computer system/server, and it can be with numerous other universal or special calculating
System environments or configuration are operated together.It is suitable to the well-known computing system, the ring that are used together with computer system/server
The example of border and/or configuration is included but is not limited to:Personal computer system, server computer system, thin client, thick client
Machine, hand-held or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC,
Little types Ji calculates machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in the computer system executable instruction performed by computer system(Such as journey
Sequence module)General linguistic context under describe.Generally, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is by by the long-range of communication network links
What reason equipment was performed.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device
On calculation system storage medium.
With reference to Fig. 1, the management method flow chart of browser plug-in according to an embodiment of the invention, the side are shown
Method can specifically include:
When step 101, startup browser, browser host process is created, the browser host process calls browser kernel
Load the main frame of the browser and in web page contents shown in the main frame.
When browser is started, browser host process, the further controlled loading browser of browser host process are created first
Window, content shown in browser window includes the main frame of browser, can show that one is preset when being opened due to browser
Shipping Options Page(Such as blank page, homepage etc.), therefore, can also show in a webpage for default Shipping Options Page in browser window
Hold.
The loading of browser window content is by browser kernel(Such as chrome kernels)Complete, browser kernel that is to say
The rendering engine that browser is used, rendering engine determines how browser shows the content of webpage and the form letter of the page
Breath.
Step 102, when the main frame of the browser is loaded, the browser kernel searched and installed on the browser
The corresponding plug-in unit property file of plug-in unit.
During browser host process loading browser main frame, extract according to the corresponding HTML HTML of main frame
Document, calls browser kernel to render main frame, and in the embodiment of the present invention, displaying has plug-in unit on main frame, is being rendered into plug-in unit
When, loaded according to the corresponding plug-in unit property file of plug-in unit.Plug-in unit property file specifically defines plug-in unit in the main frame of browser
The content and the bandwagon effect of plug-in unit shown on frame.
The loading position set for the plug-in unit in step 103, the extraction plug-in unit property file, the loading position
Sidebar including the main frame.
Plug-in unit is also referred to as extension, may be mounted on browser, and the API application programmings provided by browser are connect
Mouth accesses the plug-in unit.One plug-in unit is to that should have the plug-in unit property file being compressed together, including a Manifest file, one
Or multiple HTML html files, optionally one or more javascript files, optional any desired
Alternative document(Such as picture).Wherein, Manifest files are generally json forms, wherein the essential information of plug-in unit is contained,
Such as most important listed files, application(Extension)Required authority etc..
When plug-in unit is developed, these files are all put under same catalogue, during issue plug-in unit, the text under this catalogue
Part is all bundled in a compressed file of .crx, and browser kernel can belong to when browser main frame is rendered in plug-in unit
Property file in extract for plug-in unit set loading position.
Step 104, the sidebar that the plug-in unit is carried in the main frame according to the loading position.
Plug-in unit can be carried in the side of main frame according to loading position when browser main frame is rendered for browser kernel
Sidebar, in concrete implementation, the plug-in unit property file also includes the plug-in unit icon of the access interface of the correspondence plug-in unit, enters
One step, it is described plug-in unit is carried in main frame according to loading position sidebar the step of can include:
Sub-step S11, the browser kernel extract the plug-in unit icon in the plug-in unit property file, by the plug-in unit figure
Mark is carried in the sidebar of the main frame.
Be carried in plug-in unit on main frame by browser kernel, can be that plug-in unit icon is included into the sidebar in main frame,
Plug-in unit picture pre-sets, and is stored in plug-in unit property file, and plug-in unit icon can correspond to a plug-in unit link, click on plug-in unit figure
Mark calls the plug-in unit.
In concrete implementation, showing the sidebar of plug-in unit can be carried out by clicking on the X button in the plug-in unit column upper right corner
Close, it is also possible to by way of preset link sets automatic hidden, for example, detect mouse moving near sidebar
During predeterminable area scope, show sidebar, when outside predeterminable area scope, reduce and do not grasped in sidebar, or Preset Time
When making sidebar, then automatic hidden sidebar.
According to the embodiment of the present invention, the loading position of plug-in unit includes the sidebar of main frame, and the space of sidebar is larger, can
The multiple plug-in units for directly invoking of displaying, solve plug-in unit in the prior art and can only be carried in the right side area of browser address bar and lead
The problem for causing the plug-in unit number of directly displaying limited, calls the easy to operate of plug-in unit, improves the efficiency for accessing plug-in unit.
With reference to Fig. 2, the management method flow chart of browser plug-in in accordance with another embodiment of the present invention is shown, it is described
Method can specifically include:
When step 201, startup browser, browser host process is created, the browser host process calls browser kernel
Load the main frame of the browser and in web page contents shown in the main frame.
Step 202, when the main frame of the browser is loaded, the browser kernel searched and installed on the browser
The corresponding plug-in unit property file of plug-in unit.
The loading position set for the plug-in unit in step 203, the extraction plug-in unit property file, the loading position
The right side area of the address field of sidebar or the main frame including the main frame.
Step 204, sidebar or the main frame that the plug-in unit is carried in the main frame according to the loading position
The right side area of the address field of frame.
From unlike last embodiment, in the present embodiment, in plug-in unit property file, the loading position of plug-in unit not only includes
The sidebar of browser main frame, also including the right side area of browser main frame address field, therefore, plug-in unit can both be carried in
The sidebar of main frame, it is also possible to be carried in the right side area of browser address bar, compared to background technology and last implementation
Example provides more positions that can load plug-in unit on browser main frame, also, the call operation of plug-in unit is very convenient, carries
The access efficiency of plug-in unit high.
As shown in figure 5, the schematic diagram that plug-in unit in the embodiment of the present invention is carried in browser main frame is given, plug-in unit displaying
Sidebar and the right side of address field in main frame, if desired accessing more plug-in units can be by " more " on the right side of address field
Button conducts interviews.
The plug-in unit that step 205, the browser host process receive browser client triggering clicks on event, and calls described clear
Device kernel of looking at generates the suspended window for showing the pin function in the window of the browser.
In the embodiment of the present invention, can trigger plug-in unit and click on event with the plug-in unit on click browser main frame, it is right to start
Calling for plug-in unit, after host process receives plug-in unit click event, calls browser kernel that displaying is generated in browser window and inserts
The suspended window of part function, specifically, the plug-in unit property file is also included for the preset hypertext markup language of the plug-in unit
Speech html document, the plug-in unit that the browser host process receives browser client triggering clicks on event, and calls browser kernel
The step of suspended window of generation displaying pin function, includes:
The plug-in unit that sub-step S21, the browser host process receive browser client triggering clicks on event, installs described inserting
Part simultaneously creates the corresponding plug-in unit process of the plug-in unit.
Sub-step S22, the plug-in unit process initialization show the suspended window of pin function.
Sub-step S23, the suspended window extract preset HTML html document, and call the browser
Kernel renders the suspended window according to the HTML html document.
After browser host process receives the plug-in unit click event generated after being clicked on to plug-in unit, it is first determined whether plug-in unit pacifies
Dress, if it is not installed, installing plug-in unit first, and is inserted by the corresponding plug-in unit process of browser host process establishment plug-in unit after mounting
Part process is the subprocess of the browser host process, and plug-in unit process can be by corresponding process creation function
(CreateReaderActiveXProcess)Create, such as under Windows operating system, can pass through
CreateProcess creates plug-in unit process, under linux operating systems, can be by fork () function creation plug-in unit process.
Plug-in unit process is used to manage each function of plug-in unit, and after plug-in unit process is founded, initialization first shows pin function
Suspended window.Specifically, by one suspended window of plug-in unit process initialization, that is, WebBrowser controls are initialized,
WebBrowser is a container of Microsoft's encapsulation, and the page is rendered for being carried on window application, and a page is exactly
One WebBrowser container, plug-in unit process calls the interface of WebBrowser controls just to complete initialization.
In concrete implementation, suspended window can be illustrated near plug-in unit, and the edge of suspended window can be with plug-in unit in main frame
Plug-in unit icon connection on frame, to show the plug-in unit associated by suspended window.As shown in fig. 7, clicking on plug-in unit " the small helper of life "
Afterwards, linking for various multiple applications related to life is illustrated on the right side of the plug-in unit, the suspended window edge points to corresponding plug-in unit.
After initialization suspended window, the suspended window is extracted for the preset suspended window content of pages of the plug-in unit, i.e., preset is super
Text mark up language html document, then suspended window further call the browser kernel to render suspension according to html document
Window, the html document that will be obtained is illustrated in the suspended window of initialization.
Preferably, when the plug-in unit includes that file reads the plug-in unit of type, the suspended window includes multiple documents
Exhibition information or multiple corresponding access of document difference link, and are linked by the access for clicking on document in suspended window, Ke Yishi
Now to the quick access of document, as shown in fig. 6, giving the corresponding suspension of plug-in unit that document in the embodiment of the present invention reads type
Window schematic diagram, illustrates multiple documents in corresponding suspended window, can directly access document by clicking on.
Preferably, when the plug-in unit includes the plug-in unit of set of applications type, the suspended window includes applying multiple
Access icon, by clicking on the quick access that certain access icon applied in suspended window can be realized to the application, such as Fig. 7
It is shown, the suspended window schematic diagram of the plug-in unit of set of applications type in the embodiment of the present invention is given, plug-in unit " the small helper of life " is right
Multiple applications such as " weather application ", " express delivery inquiry ", " ordering air ticket " are illustrated in the suspended window answered, browser client pair is facilitated
The direct access of application.
Preferably, when the plug-in unit includes the plug-in unit of application type, the suspended window includes the operating function of application
Interface, by clicking on the quick access that functional buttons being operated in suspended window can be realized to pin function, as shown in figure 8, being given
The plug-in unit corresponding suspended window schematic diagram of application type in the embodiment of the present invention, the plug-in unit is microblogging plug-in unit, corresponding suspension
Multiple micro-blog informations and addition account function are illustrated in window.
In the prior art, after the plug-in unit in click browser, plug-in unit is more to be carried out further in the form of page action
Displaying, i.e., loading a new Shipping Options Page in a browser is used to show the correlation function page of the plug-in unit, the embodiment of the present invention
In, be shown in the form of browser action after clicking on plug-in unit, that is, after clicking on plug-in unit, show a suspended window, can be with
Directly quick access to pin function can be realized by suspended window, without opening new webpage, suspended window has no effect on use
Family browses to current web page, without carrying out webpage between handover operation.
In the present embodiment, display location that can also be to plug-in unit on browser main frame is adjusted, as shown in Fig. 2
The method of the present embodiment can also include:
Step 206, the browser host process receive loading of the browser client by preset link to the plug-in unit
The adjustment put, and the main frame of the browser is reloaded according to the loading position after adjustment, the loading position after the adjustment
Put the right side area of the address field of sidebar or the main frame including the main frame.
Can specifically be accustomed to being adjusted with demand the loading position of plug-in unit according to user, can be carried out by preset link
Adjustment, as illustrated in fig. 9, gives the schematic diagram of the plug-in unit setting page in the embodiment, can set page by accessing plug-in unit
Face, selects the specific display location of each plug-in unit, such as in Fig. 9 a, being provided with select button for each plug-in unit carries out loading position
The selection put, by taking plug-in unit " video display complete works of " as an example, the display location that can be selected include " hiding ", " being shown to plug-in unit column " and
" being shown to sidebar ", wherein it refers to the right side that plug-in unit is illustrated in browser address bar in the prior art to be shown to plug-in unit column.
In concrete implementation, can be configured by clicking on preset adjustment button, such as shown in Fig. 9 b, give plug-in unit setting
The page calls schematic diagram, by clicking on the button of " ﹢ " shape in main frame sidebar, shows the lower right side of suspended window
, there are two menu options in settings button, clicks on the plug-in unit setting page that " managing my extension " therein may bring up in Fig. 9 a
Face.
Adjustment to plug-in unit loading position can be that the plug-in unit that script is carried in main frame sidebar is adjusted into browser
The plug-in unit on the right side of address field, or the right side that script is carried in into browser address bar is adjusted to browser main frame side
Sidebar, because the display location to plug-in unit is adjusted, it is therefore desirable to browser main frame is rendered again, and will adjust
Whole plug-in unit loading position after the adjustment.
It is further preferred that as shown in Fig. 2 the present embodiment can further include:
Step 207, according to the loading position after being adjusted for plug-in unit, in changing the corresponding plug-in unit property file of the plug-in unit
For the loading position that the plug-in unit is set.
Because the loading position to plug-in unit is adjusted, the plug-in unit that will can be set in plug-in unit property file accordingly
Loading position is modified, and in concrete implementation, the step can be performed before step 206, when step 206 is performed,
Plug-in unit can be loaded according to revised plug-in unit property file.
In the embodiment of the present invention, it is further preferred that the plug-in unit includes that file reads plug-in unit, application plug-in or application collection
One or more in plug-in unit is closed, the type and quantity of the plug-in unit for loading on a web browser can set according to the specific demand of user
Put.
In concrete implementation, browser client can be preserved when webpage is browsed to webpage, as shown in Fig. 2 this
Embodiment can also include:
Step 208, receive browser client triggering to the preservation event of webpage shown in the main frame when, lead to
Know that the plug-in unit preserves the webpage and generation movement locus the adding in the main frame to the plug-in unit from the webpage
Carry the suspended window of position.
In the present embodiment, plug-in unit can be used for collecting webpage, for example, collection plug-in unit is installed on a web browser,
When user browses webpage, webpage can be preserved, the preservation event to webpage can be triggered by the menu option of right button.
After browser host process receives triggering webpage preservation event, browser kernel is called to generate mobile suspended window, suspended window
Position of the motion track from the webpage for being preserved to the plug-in unit for collecting webpage on browser main frame.
Specifically, the browser kernel possesses position acquisition interface(Get_location interfaces), it is described to notify to insert
Part preserves webpage and generation movement locus to be included to plug-in unit from webpage the step of the suspended window of the loading position of main frame:
Sub-step S31, the browser host process notify the corresponding plug-in unit process of the plug-in unit;
Sub-step S32, the plug-in unit process call the plug-in unit to preserve the webpage, and call the position acquisition interface
Obtain loading position of the plug-in unit in the main frame;
Sub-step S33, the plug-in unit process call loading position of the browser kernel according to acquired in, generation motion
Track preserves the suspended window of the webpage to the plug-in unit from the webpage in the loading position, expression.
After browser host process receives webpage preservation event, can notify for collecting the corresponding plug-in unit of the plug-in unit of webpage
Process, plug-in unit process calls corresponding plug-in unit to preserve webpage, and calling station obtains interface and obtains loading of the plug-in unit in main frame
Position, and call browser kernel to generate suspended window, specifically, plug-in unit process initializes a suspended window first, then hangs
Floating window obtains preset suspended window displaying content, and calls browser kernel to render suspended window, while notifying browser
The loading position of kernel suspended window plug-in unit, browser kernel renders suspended window according to the displaying content of suspended window, and controls to suspend
Window moves to loading position of the plug-in unit on main frame from webpage.According to the present embodiment, informed by mobile suspended window
Preservation success of the browser client to webpage, and the position of plug-in unit is learnt by the terminal that suspended window is moved, so that convenient by adjusting
Access again is carried out to the webpage with the plug-in unit.
In concrete implementation, after browser client triggering is to the operation of webpage shown in the main frame, and
Before being preserved to webpage, the prompting frame preserved to webpage can be generated on webpage, it is further true by prompting frame
Recognize the preservation to webpage, it is possible to webpage is saved in preset classification.
According to the embodiment of the present invention, when browser loading browser main frame is started, the corresponding plug-in unit category of plug-in unit is searched
Property file, plug-in unit is carried in the sidebar of main frame, side according to the loading position set for plug-in unit in plug-in unit property file
The space of sidebar is larger, can show multiple plug-in units for directly invoking, and solving plug-in unit in the prior art can only be carried in browser
The right side area of address field causes the limited problem of the plug-in unit number of direct displaying, calls the easy to operate of plug-in unit, improves visit
Ask the efficiency of plug-in unit.
It should be noted that for foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because according to
According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know,
Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
With reference to Fig. 3, the managing device structured flowchart of browser plug-in according to an embodiment of the invention is shown, it is described
Device can specifically include:
Load-on module 301, for starting during browser, creates browser host process, and the browser host process is called clear
Look at the main frame of browser described in device kernel loads and in web page contents shown in the main frame;
Property file searching modul 302, for when the main frame of the browser is loaded, the browser kernel to be searched
The corresponding plug-in unit property file of plug-in unit installed on the browser;
Position extraction module 303, for extracting the loading position set for the plug-in unit in the plug-in unit property file,
The loading position includes the sidebar of the main frame;
Plug-in unit load-on module 304, the side for the plug-in unit to be carried in the main frame according to the loading position
Column.
In the embodiment of the present invention, it is preferable that the plug-in unit property file also includes the access interface of the correspondence plug-in unit
Plug-in unit icon, the plug-in unit load-on module extracts the plug-in unit in the plug-in unit property file specifically for the browser kernel
Icon, the plug-in unit icon is carried in the sidebar of the main frame.
According to the embodiment of the present invention, when browser loading browser main frame is started, the corresponding plug-in unit category of plug-in unit is searched
Property file, plug-in unit is carried in the sidebar of main frame, side according to the loading position set for plug-in unit in plug-in unit property file
The space of sidebar is larger, can show multiple plug-in units for directly invoking, and solving plug-in unit in the prior art can only be carried in browser
The right side area of address field causes the limited problem of the plug-in unit number of direct displaying, calls the easy to operate of plug-in unit, improves visit
Ask the efficiency of plug-in unit.
Using the embodiment of the present invention, when plug-in unit is clicked on, the displaying pin function is directly generated in browser window
Suspended window, directly quick access to pin function can be realized by suspended window, without opening new webpage, suspended window is simultaneously
Do not influence user to browse current web page, without carrying out webpage between handover operation.
With reference to Fig. 4, the managing device structured flowchart of browser plug-in in accordance with another embodiment of the present invention, institute are shown
Stating device can specifically include:
Load-on module 401, for starting during browser, creates browser host process, and the browser host process is called clear
Look at the main frame of browser described in device kernel loads and in web page contents shown in the main frame;
Property file searching modul 402, for when the main frame of the browser is loaded, the browser kernel to be searched
The corresponding plug-in unit property file of plug-in unit installed on the browser;
Position extraction module 403, for extracting the loading position set for the plug-in unit in the plug-in unit property file,
The loading position includes the right side area of the address field of the sidebar or the main frame of the main frame;
Plug-in unit load-on module 404, the side for the plug-in unit to be carried in the main frame according to the loading position
The right side area of the address field of column or the main frame.
Suspended window display module 405, the plug-in unit for receiving browser client triggering for the browser host process clicks on thing
Part, and call the browser kernel that the suspended window for showing the pin function is generated in the window of the browser.
Position adjusting type modules 406, browser client is received by preset link to described for the browser host process
The adjustment of the loading position of plug-in unit, and the main frame of the browser, the tune are reloaded according to the loading position after adjustment
Loading position after whole includes the right side area of the address field of the sidebar or the main frame of the main frame.
File modification module 407, for according to the loading position after being adjusted for plug-in unit, changing, the plug-in unit is corresponding to be inserted
The loading position set for the plug-in unit in part property file.
In the embodiment of the present invention, when the plug-in unit is used to collect the webpage that browser client request is preserved, it is preferable that described
Device can also include:
Preserve event processing module 408, for life receive browser client triggering to shown in the main frame
During the preservation event of webpage, notify that the plug-in unit preserves the webpage and generation movement locus is inserted from the webpage to described
Suspended window of the part in the loading position of the main frame.
In the embodiment of the present invention, it is preferable that the plug-in unit includes that file reads plug-in unit, application plug-in or set of applications plug-in unit
In one or more;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the multiple exhibition information of documents or many
Individual document difference is corresponding to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
In the embodiment of the present invention, it is preferable that the plug-in unit property file is also included for the preset hypertext of the plug-in unit
Markup language html document, the suspended window display module includes:
Click event receiving submodule, the plug-in unit for receiving browser client triggering for the browser host process clicks on thing
Part, installs the plug-in unit and creates the corresponding plug-in unit process of the plug-in unit;
Suspended window initialization submodule, the suspended window of pin function is shown for the plug-in unit process initialization;
Document acquisition submodule, extracts preset HTML html document, and call for the suspended window
The browser kernel renders the suspended window according to the HTML html document.
In the embodiment of the present invention, it is preferable that the browser kernel possesses position acquisition interface, the preservation event handling
Module includes:
Submodule is notified, the corresponding plug-in unit process of the plug-in unit is notified for the browser host process;
Loading position acquisition submodule, calls the plug-in unit to preserve the webpage, and call institute for the plug-in unit process
State position acquisition interface and obtain loading position of the plug-in unit in the main frame;
Suspended window generates submodule, and loading position of the browser kernel according to acquired in is called for the plug-in unit process
Put, generation movement locus preserves the webpage from the position of the web page contents to the plug-in unit in the loading position, expression
The suspended window of content.
According to the embodiment of the present invention, when browser loading browser main frame is started, the corresponding plug-in unit category of plug-in unit is searched
Property file, plug-in unit is carried in the sidebar of main frame, side according to the loading position set for plug-in unit in plug-in unit property file
The space of sidebar is larger, can show multiple plug-in units for directly invoking, and solving plug-in unit in the prior art can only be carried in browser
The right side area of address field causes the limited problem of the plug-in unit number of direct displaying, calls the easy to operate of plug-in unit, improves visit
Ask the efficiency of plug-in unit.
Using the embodiment of the present invention, when plug-in unit is clicked on, the displaying pin function is directly generated in browser window
Suspended window, directly quick access to pin function can be realized by suspended window, without opening new webpage, suspended window is simultaneously
Do not influence user to browse current web page, without carrying out webpage between handover operation.
For the managing device embodiment of above-mentioned browser plug-in, because it is substantially similar to embodiment of the method, institute
Fairly simple with what is described, related part is illustrated referring to the part of embodiment of the method shown in Fig. 1 and Fig. 2.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be:Any combination application of above-mentioned each embodiment is all feasible, therefore
Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited,
This is not just detailed one by one.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requires, makes a summary and accompanying drawing)Disclosed in each feature can carry out generation by the alternative features for providing identical, equivalent or similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)Come in the management equipment for realizing browser plug-in according to embodiments of the present invention
Some or all parts some or all functions.The present invention is also implemented as performing side as described herein
Some or all equipment or program of device of method(For example, computer program and computer program product).It is such
Realize that program of the invention can be stored on a computer-readable medium, or there can be the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other shape
Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The invention discloses A1, a kind of management method of browser plug-in, including:
When starting browser, browser host process is created, it is described that the browser host process calls browser kernel to load
The main frame of browser and in web page contents shown in the main frame;
When the main frame of the browser is loaded, the browser kernel searches the plug-in unit pair installed on the browser
The plug-in unit property file answered;
The loading position set for the plug-in unit in the plug-in unit property file is extracted, the loading position includes described
The sidebar of main frame;
The plug-in unit is carried in the sidebar of the main frame according to the loading position.
A2, the method as described in A1, methods described also include:
The plug-in unit that the browser host process receives browser client triggering clicks on event, and calls the browser kernel
The suspended window of the displaying pin function is generated in the window of the browser.
A3, the method as described in A2, the plug-in unit property file are also included for the preset hypertext markup of the plug-in unit
Language html document, the plug-in unit that the browser host process receives browser client triggering clicks on event, and calls in browser
The step of karyogenesis shows the suspended window of pin function includes:
The plug-in unit that the browser host process receives browser client triggering clicks on event, installs the plug-in unit and creates institute
State the corresponding plug-in unit process of plug-in unit;
The plug-in unit process initialization shows the suspended window of pin function;
The suspended window extracts preset HTML html document, and calls the browser kernel according to institute
State HTML html document and render the suspended window.
A4, the method as described in A1, the right side area of the loading position also address field including the main frame are described
Method also includes:
The plug-in unit is carried in the browser kernel right side of the address field of the main frame according to the loading position
Side region.
A5, the method as described in A1 or A4, also include:
The browser host process receives the adjustment of loading position of the browser client by preset link to the plug-in unit,
And the main frame of the browser is reloaded according to the loading position after adjustment, the loading position after the adjustment includes described
The right side area of the address field of the sidebar of main frame or the main frame.
A6, the method as described in A5, also include:
According to the loading position after being adjusted for plug-in unit, for described in the corresponding plug-in unit property file of the modification plug-in unit
The loading position that plug-in unit is set.
A7, the method as described in A1, the plug-in unit are used to collect the webpage that browser client request is preserved, and also include:
Receive browser client triggering to the preservation event of webpage shown in the main frame when, notify described inserting
Part preserve the webpage and generation movement locus from the webpage to the plug-in unit the main frame loading position
Suspended window.
A8, the method as described in A7, the browser kernel possess position acquisition interface, and the notice plug-in unit preserves webpage
And generation movement locus includes to plug-in unit from webpage the step of the suspended window of the loading position of main frame:
The browser host process notifies the corresponding plug-in unit process of the plug-in unit;
The plug-in unit process calls the plug-in unit to preserve the webpage, and calls the position acquisition interface to obtain described inserting
Loading position of the part in the main frame;
The plug-in unit process calls loading position of the browser kernel according to acquired in, and generation movement locus is from described
Preserve the suspended window of the webpage in webpage in the loading position, expression to the plug-in unit.
A9, the method as described in A2, the plug-in unit are included in file reading plug-in unit, application plug-in or set of applications plug-in unit
One or more;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the multiple exhibition information of documents or many
Individual document difference is corresponding to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
A10, the method as described in A1, the plug-in unit property file also include the plug-in unit of the access interface of the correspondence plug-in unit
Icon, it is described plug-in unit is carried in main frame according to loading position sidebar the step of include:
The browser kernel extracts the plug-in unit icon in the plug-in unit property file, and the plug-in unit icon is carried in into institute
State the sidebar of main frame.
The invention also discloses B11, a kind of managing device of browser plug-in, including:
Load-on module, for starting during browser, creates browser host process, and the browser host process calls browser
The main frame of browser described in kernel loads and in web page contents shown in the main frame;
Property file searching modul, for when the main frame of the browser is loaded, the browser kernel to search institute
State the corresponding plug-in unit property file of plug-in unit installed on browser;
Position extraction module, for extracting the loading position set for the plug-in unit in the plug-in unit property file, institute
State sidebar of the loading position including the main frame;
Plug-in unit load-on module, the sidebar for the plug-in unit to be carried in the main frame according to the loading position.
B12, the device as described in B11, also include:
Suspended window display module, the plug-in unit for receiving browser client triggering for the browser host process clicks on event,
And call the browser kernel that the suspended window for showing the pin function is generated in the window of the browser.
B13, the device as described in B12, the plug-in unit property file are also included for the preset hypertext mark of the plug-in unit
Note language html document, the suspended window display module includes:
Click event receiving submodule, the plug-in unit for receiving browser client triggering for the browser host process clicks on thing
Part, installs the plug-in unit and creates the corresponding plug-in unit process of the plug-in unit;
Suspended window initialization submodule, the suspended window of pin function is shown for the plug-in unit process initialization;
Document acquisition submodule, extracts preset HTML html document, and call for the suspended window
The browser kernel renders the suspended window according to the HTML html document.
B14, the device as described in B11, the right side area of the loading position also address field including the main frame, institute
Plug-in unit load-on module is stated, the browser kernel is additionally operable to and the plug-in unit is carried in the main frame according to the loading position
Address field right side area.
B15, the device as described in B1 or B14, also include:
Position adjusting type modules, browser client is received by preset link to the plug-in unit for the browser host process
Loading position adjustment, and the main frame of the browser is reloaded according to the loading position after adjustment, after the adjustment
Loading position including the main frame sidebar or the main frame address field right side area.
B16, the device as described in B15, also include:
File modification module, for according to the loading position after being adjusted for plug-in unit, changing the corresponding plug-in unit of the plug-in unit
The loading position set for the plug-in unit in property file.
B17, the device as described in B11, the plug-in unit are used to collect the webpage that browser client request is preserved, described device
Also include:
Preserve event processing module, for life receive browser client triggering to webpage shown in the main frame
Preservation event when, notify that the plug-in unit preserves the webpage and generation movement locus exists from the webpage to the plug-in unit
The suspended window of the loading position of the main frame.
B18, the device as described in B17, the browser kernel possess position acquisition interface, the preservation event handling mould
Block includes:
Submodule is notified, the corresponding plug-in unit process of the plug-in unit is notified for the browser host process;
Loading position acquisition submodule, calls the plug-in unit to preserve the webpage, and call institute for the plug-in unit process
State position acquisition interface and obtain loading position of the plug-in unit in the main frame;
Suspended window generates submodule, and loading position of the browser kernel according to acquired in is called for the plug-in unit process
Put, generation movement locus preserves the suspended window of the webpage to the plug-in unit from the webpage in the loading position, expression.
B19, the device as described in B12, the plug-in unit are included in file reading plug-in unit, application plug-in or set of applications plug-in unit
One or more;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the multiple exhibition information of documents or many
Individual document difference is corresponding to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
B20, the device as described in B11, the plug-in unit property file also include inserting for the access interface of the correspondence plug-in unit
Part icon, the plug-in unit load-on module extracts the plug-in unit figure in the plug-in unit property file specifically for the browser kernel
Mark, the plug-in unit icon is carried in the sidebar of the main frame.
Claims (18)
1. a kind of management method of browser plug-in, including:
When starting browser, browser host process is created, the browser host process is called and browsed described in browser kernel loading
The main frame of device and in web page contents shown in the main frame;
When the main frame of the browser is loaded, it is corresponding that the browser kernel searches the plug-in unit installed on the browser
Plug-in unit property file;
The loading position set for the plug-in unit in the plug-in unit property file is extracted, the loading position includes the main frame
The sidebar of frame;
The plug-in unit is carried in the sidebar of the main frame according to the loading position;
The plug-in unit that the browser host process receives browser client triggering clicks on event, and calls the browser kernel in institute
State the suspended window of the generation displaying pin function in the window of browser.
2. the method for claim 1, the plug-in unit property file is also included for the preset hypertext mark of the plug-in unit
Note language html document, the plug-in unit that the browser host process receives browser client triggering clicks on event, and calls browser
The step of interior karyogenesis shows the suspended window of pin function includes:
The plug-in unit that the browser host process receives browser client triggering clicks on event, installs the plug-in unit and creates described inserting
The corresponding plug-in unit process of part;
The plug-in unit process initialization shows the suspended window of pin function;
The suspended window extracts preset HTML html document, and calls the browser kernel according to described super
Text mark up language html document renders the suspended window.
3. the method for claim 1, the right side area of the loading position also address field including the main frame, institute
Stating method also includes:
The plug-in unit is carried in the browser kernel right side region of the address field of the main frame according to the loading position
Domain.
4. the method as described in claim 1 or 3, also includes:
The browser host process receives the adjustment of loading position of the browser client by preset link to the plug-in unit, and presses
The main frame of the browser is reloaded according to the loading position after adjustment, the loading position after the adjustment includes the main frame
The right side area of the address field of the sidebar of frame or the main frame.
5. method as claimed in claim 4, also includes:
According to the loading position after being adjusted for plug-in unit, the plug-in unit is directed in the corresponding plug-in unit property file of the modification plug-in unit
The loading position of setting.
6. the method for claim 1, the webpage that the plug-in unit is preserved for collecting browser client to ask, also include:
Receive browser client triggering to the preservation event of webpage shown in the main frame when, notify that the plug-in unit is protected
Deposit the webpage and generation movement locus from the webpage to the plug-in unit the loading position of the main frame suspension
Window.
7. method as claimed in claim 6, the browser kernel possesses position acquisition interface, and the notice plug-in unit preserves net
Page and generation movement locus include to plug-in unit from webpage the step of the suspended window of the loading position of main frame:
The browser host process notifies the corresponding plug-in unit process of the plug-in unit;
The plug-in unit process calls the plug-in unit to preserve the webpage, and calls the position acquisition interface acquisition plug-in unit to exist
The loading position of the main frame;
The plug-in unit process calls loading position of the browser kernel according to acquired in, generates movement locus from the webpage
In to the plug-in unit in the loading position, represent the suspended window that preserves the webpage.
8. the method for claim 1, during the plug-in unit includes that file reads plug-in unit, application plug-in or set of applications plug-in unit
One or more;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the exhibition information of multiple documents or multiple texts
Shelves are corresponding respectively to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
9. the method for claim 1, the plug-in unit property file also includes inserting for the access interface of the correspondence plug-in unit
Part icon, it is described plug-in unit is carried in main frame according to loading position sidebar the step of include:
The browser kernel extracts the plug-in unit icon in the plug-in unit property file, and the plug-in unit icon is carried in into the master
The sidebar of framework.
10. a kind of managing device of browser plug-in, including:
Load-on module, for starting during browser, creates browser host process, and the browser host process calls browser kernel
Load the main frame of the browser and in web page contents shown in the main frame;
Property file searching modul, for when the main frame of the browser is loaded, the browser kernel to be searched described clear
Look at the corresponding plug-in unit property file of plug-in unit installed on device;
Position extraction module, it is described to add for extracting the loading position set for the plug-in unit in the plug-in unit property file
Carrying position includes the sidebar of the main frame;
Plug-in unit load-on module, the sidebar for the plug-in unit to be carried in the main frame according to the loading position;
Suspended window display module, the plug-in unit for receiving browser client triggering for the browser host process clicks on event, and adjusts
The suspended window for showing the pin function is generated in the window of the browser with the browser kernel.
11. devices as claimed in claim 10, the plug-in unit property file is also included for the preset hypertext of the plug-in unit
Markup language html document, the suspended window display module includes:
Click event receiving submodule, the plug-in unit for receiving browser client triggering for the browser host process clicks on event,
The plug-in unit is installed and the corresponding plug-in unit process of the plug-in unit is created;
Suspended window initialization submodule, the suspended window of pin function is shown for the plug-in unit process initialization;
Document acquisition submodule, extracts preset HTML html document, and call described for the suspended window
Browser kernel renders the suspended window according to the HTML html document.
12. devices as claimed in claim 10, the right side area of the loading position also address field including the main frame,
The plug-in unit load-on module, is additionally operable to the browser kernel and the plug-in unit is carried in into the main frame according to the loading position
The right side area of the address field of frame.
13. device as described in claim 10 or 12, also includes:
Position adjusting type modules, are received browser client the plug-in unit is added by preset links for the browser host process
The adjustment of position is carried, and the main frame of the browser is reloaded according to the loading position after adjustment, adding after the adjustment
Carrying position includes the right side area of address field of the sidebar or the main frame of the main frame.
14. devices as claimed in claim 13, also include:
File modification module, for according to the loading position after being adjusted for plug-in unit, changing the corresponding plug-in unit attribute of the plug-in unit
The loading position set for the plug-in unit in file.
15. devices as claimed in claim 10, the plug-in unit is used to collect the webpage that browser client request is preserved, the dress
Putting also includes:
Event processing module is preserved, the preservation to webpage shown in the main frame for receiving browser client triggering
During event, notify the plug-in unit preserve the webpage and generation movement locus from the webpage to the plug-in unit in the master
The suspended window of the loading position of framework.
16. devices as claimed in claim 15, the browser kernel possesses position acquisition interface, the preservation event handling
Module includes:
Submodule is notified, the corresponding plug-in unit process of the plug-in unit is notified for the browser host process;
Loading position acquisition submodule, calls the plug-in unit to preserve the webpage, and call institute's rheme for the plug-in unit process
Put the loading position for obtaining the interface acquisition plug-in unit in the main frame;
Suspended window generates submodule, and loading position of the browser kernel according to acquired in is called for the plug-in unit process,
Generation movement locus preserves the suspended window of the webpage to the plug-in unit from the webpage in the loading position, expression.
17. devices as claimed in claim 10, the plug-in unit includes that file reads plug-in unit, application plug-in or set of applications plug-in unit
In one or more;
When the plug-in unit includes that file reads plug-in unit, the suspended window includes the exhibition information of multiple documents or multiple texts
Shelves are corresponding respectively to access link;
When the plug-in unit includes set of applications plug-in unit, the suspended window includes the access icon to multiple applications;
When the plug-in unit includes application plug-in, the suspended window includes the operating function interface of application.
18. devices as claimed in claim 10, the plug-in unit property file also includes the access interface of the correspondence plug-in unit
Plug-in unit icon, the plug-in unit load-on module extracts the plug-in unit in the plug-in unit property file specifically for the browser kernel
Icon, the plug-in unit icon is carried in the sidebar of the main frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310658893.4A CN103677823B (en) | 2013-12-06 | 2013-12-06 | Method and device for managing browser plug-ins |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310658893.4A CN103677823B (en) | 2013-12-06 | 2013-12-06 | Method and device for managing browser plug-ins |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103677823A CN103677823A (en) | 2014-03-26 |
CN103677823B true CN103677823B (en) | 2017-05-24 |
Family
ID=50315490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310658893.4A Active CN103677823B (en) | 2013-12-06 | 2013-12-06 | Method and device for managing browser plug-ins |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103677823B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020135129A1 (en) * | 2018-12-25 | 2020-07-02 | 中兴通讯股份有限公司 | Method and device for loading plug-in of application, and terminal |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933629B (en) * | 2014-06-13 | 2021-01-15 | 北京奇虎科技有限公司 | Method for loading browser plug-in icon and browser |
CN105278977B (en) * | 2014-07-14 | 2019-05-21 | 阿里巴巴集团控股有限公司 | A kind of loading method and device of web pages component |
CN104298523B (en) * | 2014-09-23 | 2018-09-04 | 北京金山安全软件有限公司 | Component loading method and device and terminal |
CN104317605B (en) * | 2014-11-18 | 2017-11-24 | 东方网力科技股份有限公司 | A kind of assembly operating method and device |
CN105045474B (en) * | 2015-07-06 | 2018-02-09 | 无锡天脉聚源传媒科技有限公司 | A kind of plug-in unit display control method and device |
CN106874020B (en) * | 2015-12-10 | 2021-02-02 | 五八同城信息技术有限公司 | Method and device for starting plug-in |
CN107145372A (en) * | 2017-05-09 | 2017-09-08 | 北京京东尚科信息技术有限公司 | information generating method and device |
CN110569093A (en) * | 2018-05-17 | 2019-12-13 | 长沙博为软件技术股份有限公司 | Method for managing desktop application program and realizing plug-in based on embedded browser |
CN110908728B (en) * | 2018-09-15 | 2021-04-09 | Oppo广东移动通信有限公司 | Authority configuration method and related product |
CN109376321A (en) * | 2018-11-06 | 2019-02-22 | 浙江盘石信息技术股份有限公司 | A kind of Safety actuality methods of exhibiting being suspended in website |
CN109614562B (en) * | 2018-11-27 | 2024-05-14 | 平安科技(深圳)有限公司 | Mail display method, mail display device, computer equipment and storage medium |
CN109783154A (en) * | 2018-12-13 | 2019-05-21 | 上海二三四五网络科技有限公司 | A kind of control method and control device of automatic load browser plug-in |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034517A (en) * | 2012-12-14 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for loading browser control tool |
CN103246660A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method and device for achieving extended functions of browser |
-
2013
- 2013-12-06 CN CN201310658893.4A patent/CN103677823B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246660A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method and device for achieving extended functions of browser |
CN103034517A (en) * | 2012-12-14 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for loading browser control tool |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020135129A1 (en) * | 2018-12-25 | 2020-07-02 | 中兴通讯股份有限公司 | Method and device for loading plug-in of application, and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103677823A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103677823B (en) | Method and device for managing browser plug-ins | |
CN104036011B (en) | Webpage element display method and browser device | |
US10831858B2 (en) | Mobile enablement of existing web sites | |
CN103488781B (en) | Method, the search engine server of information search are provided | |
US10542123B2 (en) | System and method for generating and monitoring feedback of a published webpage as implemented on a remote client | |
CN103631875B (en) | Method for carrying out network search on browser side and browser | |
CN104077387B (en) | A kind of web page contents display methods and browser device | |
CN103034517B (en) | Browser controls tool loads method and apparatus | |
CN103714115B (en) | The loading method and device of a kind of web page contents | |
US8311900B1 (en) | Providing separate views for items | |
US9667733B2 (en) | Determining relevant content for keyword extraction | |
CN105955888B (en) | Page debugging preview method and system | |
CN104360882B (en) | Display methods and device are carried out to picture in webpage in a kind of browser | |
CN102929491B (en) | Cross-window animation | |
CN103034518B (en) | The method and browser of loading browser control instrument | |
CN104346075B (en) | Carry out the method and client of sectional drawing processing | |
WO2015021199A1 (en) | Access and management of entity-augmented content | |
CN103631630B (en) | Dynamic skin loading method for browser and browser device | |
KR20140072877A (en) | Techniques for managing and viewing followed content | |
CN103366002B (en) | Personalized method for vertical search and device | |
US20160173953A1 (en) | Method, Device, Server, and Client Device for Video Processing | |
CN103761241B (en) | A kind of method for uploading and browser of image data | |
CN105183890B (en) | Webpage loading method based on browser and browser device | |
CN106933629B (en) | Method for loading browser plug-in icon and browser | |
CN102521257A (en) | Method and device for providing corresponding on-line picture according to thumbnail |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220802 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: Room 112, block D, No. 28, Xinjiekou outer street, Xicheng District, Beijing 100088 (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |