"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/docshell/base/nsITooltipTextProvider.idl" (17 Sep 2019, 1589 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) IDL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "nsITooltipTextProvider.idl": 60.7.2_vs_68.0.

    1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
    2 /* This Source Code Form is subject to the terms of the Mozilla Public
    3  * License, v. 2.0. If a copy of the MPL was not distributed with this
    4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    5 
    6 #include "nsISupports.idl"
    7 
    8 webidl Node;
    9 
   10 /**
   11  * An interface implemented by a tooltip text provider service. This
   12  * service is called to discover what tooltip text is associated
   13  * with the node that the pointer is positioned over.
   14  *
   15  * Embedders may implement and register their own tooltip text provider
   16  * service if they wish to provide different tooltip text.
   17  *
   18  * The default service returns the text stored in the TITLE
   19  * attribute of the node or a containing parent.
   20  *
   21  * @note
   22  * The tooltip text provider service is registered with the contract
   23  * defined in NS_TOOLTIPTEXTPROVIDER_CONTRACTID.
   24  *
   25  * @see nsITooltipListener
   26  * @see nsIComponentManager
   27  * @see Node
   28  */
   29 [scriptable, uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)]
   30 interface nsITooltipTextProvider : nsISupports
   31 {
   32     /**
   33      * Called to obtain the tooltip text for a node.
   34      *
   35      * @arg aNode      The node to obtain the text from.
   36      * @arg aText      The tooltip text.
   37      * @arg aDirection The text direction (ltr or rtl) to use
   38      *
   39      * @return <CODE>PR_TRUE</CODE> if tooltip text is associated
   40      *         with the node and was returned in the aText argument;
   41      *         <CODE>PR_FALSE</CODE> otherwise.
   42      */
   43     boolean getNodeText(in Node aNode, out wstring aText, out wstring aDirection);
   44 };