Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / docshell / base / nsITooltipTextProvider.idl
blob3afaddbe2ac797c99b0d45ab3926af3a43c4f044
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/. */
6 #include "nsISupports.idl"
8 webidl Node;
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.
15 * Embedders may implement and register their own tooltip text provider
16 * service if they wish to provide different tooltip text.
18 * The default service returns the text stored in the TITLE
19 * attribute of the node or a containing parent.
21 * @note
22 * The tooltip text provider service is registered with the contract
23 * defined in NS_TOOLTIPTEXTPROVIDER_CONTRACTID.
25 * @see nsITooltipListener
26 * @see nsIComponentManager
27 * @see Node
29 [scriptable, uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)]
30 interface nsITooltipTextProvider : nsISupports
32 /**
33 * Called to obtain the tooltip text for a node.
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
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.
43 boolean getNodeText(in Node aNode, out wstring aText, out wstring aDirection);