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