mozIPlacesAutoComplete 编辑
toolkit/components/places/public/mozIPlacesAutoComplete.idl
Scriptable This interface provides some constants used by the Places AutoComplete search provider as well as methods to track opened pages for AutoComplete purposes. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)Method overview
void registerOpenPage(in nsIURI aURI); |
void unregisterOpenPage(in nsIURI aURI); |
Constants
Constant | Value | Description |
MATCH_ANYWHERE | 0 | Match anywhere in each searchable term. |
MATCH_BOUNDARY_ANYWHERE | 1 | Match first on word boundaries, and if we do not get enough results, then match anywhere in each searchable term. |
MATCH_BOUNDARY | 2 | Match on word boundaries in each searchable term. |
MATCH_BEGINNING | 3 | Match only the beginning of each search term. |
BEHAVIOR_HISTORY | 1 << 0 | Search through history. |
BEHAVIOR_BOOKMARK | 1 << 1 | Search though bookmarks. |
BEHAVIOR_TAG | 1 << 2 | Search through tags. |
BEHAVIOR_TITLE | 1 << 3 | Search the title of pages. |
BEHAVIOR_URL | 1 << 4 | Search the URL of pages. |
BEHAVIOR_TYPED | 1 << 5 | Search for typed pages. |
BEHAVIOR_JAVASCRIPT | 1 << 6 | Search javascript: URLs. |
BEHAVIOR_OPENPAGE | 1 << 7 | Search for pages that have been marked as being opened, such as a tab in a tabbrowser. |
Methods
registerOpenPage()
Mark a page as being currently open.
Note: Pages will not be automatically unregistered when Private Browsing mode is entered or exited. Therefore, consumers must unregister or register themselves.void registerOpenPage( in nsIURI aURI );
Parameters
aURI
- The URI to register as an open page.
unregisterOpenPage()
Mark a page as no longer being open (either by closing the window or tab, or by navigating away from that page).
Note: Pages will not be automatically unregistered when Private Browsing mode is entered or exited. Therefore, consumers must unregister or register themselves.void unregisterOpenPage( in nsIURI aURI );
Parameters
aURI
- The URI to unregister as an open page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论