Struct xpcom::interfaces::mozIPlacesAutoComplete [] [src]

#[repr(C)]
pub struct mozIPlacesAutoComplete { /* fields omitted */ }

interface mozIPlacesAutoComplete : nsISupports

/**
 * This interface provides some constants used by the Places AutoComplete
 * search provider as well as methods to track opened pages for AutoComplete
 * purposes.
 */

Methods

impl mozIPlacesAutoComplete
[src]

[src]

Cast this mozIPlacesAutoComplete to one of its base interfaces.

impl mozIPlacesAutoComplete
[src]

MATCH_ANYWHERE: i64 = 0
/**
   * Match anywhere in each searchable term.
   */

MATCH_BOUNDARY_ANYWHERE: i64 = 1
/**
   * Match first on word boundaries, and if we do not get enough results, then
   * match anywhere in each searchable term.
   */

MATCH_BOUNDARY: i64 = 2
/**
   * Match on word boundaries in each searchable term.
   */

MATCH_BEGINNING: i64 = 3
/**
   * Match only the beginning of each search term.
   */

MATCH_ANYWHERE_UNMODIFIED: i64 = 4
/**
   * Match anywhere in each searchable term without doing any transformation
   * or stripping on the underlying data.
   */

MATCH_BEGINNING_CASE_SENSITIVE: i64 = 5
/**
   * Match only the beginning of each search term using a case sensitive
   * comparator.
   */

BEHAVIOR_HISTORY: i64 = 1
/**
   * Search through history.
   */

BEHAVIOR_BOOKMARK: i64 = 2
/**
   * Search though bookmarks.
   */

BEHAVIOR_TAG: i64 = 4
/**
   * Search through tags.
   */

BEHAVIOR_TITLE: i64 = 8
/**
   * Search the title of pages.
   */

BEHAVIOR_URL: i64 = 16
/**
   * Search the URL of pages.
   */

BEHAVIOR_TYPED: i64 = 32
/**
   * Search for typed pages.
   */

BEHAVIOR_JAVASCRIPT: i64 = 64
/**
   * Search javascript: URLs.
   */

BEHAVIOR_OPENPAGE: i64 = 128
/**
   * Search for pages that have been marked as being opened, such as a tab
   * in a tabbrowser.
   */

BEHAVIOR_RESTRICT: i64 = 256
/**
   * Use intersection between history, typed, bookmark, tag and openpage
   * instead of union, when the restrict bit is set.
   */

BEHAVIOR_SEARCHES: i64 = 512
/**
   * Include search suggestions from the currently selected search provider.
   */

[src]

/**
   * 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.
   *
   * @param aURI
   *        The URI to register as an open page.
   * @param aUserContextId
   *        The Container Id of the tab.
   */

void registerOpenPage (in nsIURI aURI, in uint32_t aUserContextId);

[src]

/**
   * 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.
   *
   * @param aURI
   *        The URI to unregister as an open page.
   * @param aUserContextId
   *        The Container Id of the tab.
   */

void unregisterOpenPage (in nsIURI aURI, in uint32_t aUserContextId);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for mozIPlacesAutoComplete
[src]

IID: nsIID = nsID(1639330954, 2529, 18448, [128, 87, 248, 203, 60, 236, 110, 248])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for mozIPlacesAutoComplete
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozIPlacesAutoComplete
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.