embedding/browser/webBrowser/nsIWebBrowserFocus.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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 interface nsIDOMWindow;
michael@0 8 interface nsIDOMElement;
michael@0 9
michael@0 10 #include "nsISupports.idl"
michael@0 11
michael@0 12 /**
michael@0 13 * nsIWebBrowserFocus
michael@0 14 * Interface that embedders use for controlling and interacting
michael@0 15 * with the browser focus management. The embedded browser can be focused by
michael@0 16 * clicking in it or tabbing into it. If the browser is currently focused and
michael@0 17 * the embedding application's top level window is disabled, deactivate() must
michael@0 18 * be called, and activate() called again when the top level window is
michael@0 19 * reactivated for the browser's focus memory to work correctly.
michael@0 20 */
michael@0 21
michael@0 22 [scriptable, uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)]
michael@0 23 interface nsIWebBrowserFocus : nsISupports
michael@0 24 {
michael@0 25 /**
michael@0 26 * MANDATORY
michael@0 27 * activate() is a mandatory call that must be made to the browser
michael@0 28 * when the embedding application's window is activated *and* the
michael@0 29 * browser area was the last thing in focus. This method can also be called
michael@0 30 * if the embedding application wishes to give the browser area focus,
michael@0 31 * without affecting the currently focused element within the browser.
michael@0 32 *
michael@0 33 * @note
michael@0 34 * If you fail to make this call, mozilla focus memory will not work
michael@0 35 * correctly.
michael@0 36 */
michael@0 37 void activate();
michael@0 38
michael@0 39 /**
michael@0 40 * MANDATORY
michael@0 41 * deactivate() is a mandatory call that must be made to the browser
michael@0 42 * when the embedding application's window is deactivated *and* the
michael@0 43 * browser area was the last thing in focus. On non-windows platforms,
michael@0 44 * deactivate() should also be called when focus moves from the browser
michael@0 45 * to the embedding chrome.
michael@0 46 *
michael@0 47 * @note
michael@0 48 * If you fail to make this call, mozilla focus memory will not work
michael@0 49 * correctly.
michael@0 50 */
michael@0 51 void deactivate();
michael@0 52
michael@0 53 /**
michael@0 54 * Give the first element focus within mozilla
michael@0 55 * (i.e. TAB was pressed and focus should enter mozilla)
michael@0 56 */
michael@0 57 void setFocusAtFirstElement();
michael@0 58
michael@0 59 /**
michael@0 60 * Give the last element focus within mozilla
michael@0 61 * (i.e. SHIFT-TAB was pressed and focus should enter mozilla)
michael@0 62 */
michael@0 63 void setFocusAtLastElement();
michael@0 64
michael@0 65 /**
michael@0 66 * The currently focused nsDOMWindow when the browser is active,
michael@0 67 * or the last focused nsDOMWindow when the browser is inactive.
michael@0 68 */
michael@0 69 attribute nsIDOMWindow focusedWindow;
michael@0 70
michael@0 71 /**
michael@0 72 * The currently focused nsDOMElement when the browser is active,
michael@0 73 * or the last focused nsDOMElement when the browser is inactive.
michael@0 74 */
michael@0 75 attribute nsIDOMElement focusedElement;
michael@0 76 };

mercurial