Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | #include "nsIURI.idl" |
michael@0 | 9 | #include "nsIDOMNode.idl" |
michael@0 | 10 | |
michael@0 | 11 | interface nsIRequest; |
michael@0 | 12 | interface nsIDOMElement; |
michael@0 | 13 | |
michael@0 | 14 | /** |
michael@0 | 15 | * The nsIXULBrowserWindow supplies the methods that may be called from the |
michael@0 | 16 | * internals of the browser area to tell the containing xul window to update |
michael@0 | 17 | * its ui. |
michael@0 | 18 | */ |
michael@0 | 19 | [scriptable, uuid(e4ee85a0-645d-11e3-949a-0800200c9a66)] |
michael@0 | 20 | interface nsIXULBrowserWindow : nsISupports |
michael@0 | 21 | { |
michael@0 | 22 | /** |
michael@0 | 23 | * Sets the status according to JS' version of status. |
michael@0 | 24 | */ |
michael@0 | 25 | void setJSStatus(in AString status); |
michael@0 | 26 | |
michael@0 | 27 | /** |
michael@0 | 28 | * Tells the object implementing this function what link we are currently |
michael@0 | 29 | * over. |
michael@0 | 30 | */ |
michael@0 | 31 | void setOverLink(in AString link, in nsIDOMElement element); |
michael@0 | 32 | |
michael@0 | 33 | /** |
michael@0 | 34 | * Determines the appropriate target for a link. |
michael@0 | 35 | */ |
michael@0 | 36 | AString onBeforeLinkTraversal(in AString originalTarget, |
michael@0 | 37 | in nsIURI linkURI, |
michael@0 | 38 | in nsIDOMNode linkNode, |
michael@0 | 39 | in boolean isAppTab); |
michael@0 | 40 | |
michael@0 | 41 | /** |
michael@0 | 42 | * Show/hide a tooltip (when the user mouses over a link, say). |
michael@0 | 43 | */ |
michael@0 | 44 | void showTooltip(in long x, in long y, in AString tooltip); |
michael@0 | 45 | void hideTooltip(); |
michael@0 | 46 | }; |
michael@0 | 47 |