widget/cocoa/nsPIWidgetCocoa.idl

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: C++; tab-width: 2; 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 interface nsMenuBarX;
     9 interface nsCocoaWindow;
    10 interface nsIWidget;
    12 [ptr] native NSWindowPtr(NSWindow);
    14 //
    15 // nsPIWidgetCocoa
    16 //
    17 // A private interface (unfrozen, private to the widget implementation) that
    18 // gives us access to some extra features on a widget/window.
    19 //
    20 [uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)]
    21 interface nsPIWidgetCocoa : nsISupports
    22 {
    23   void SendSetZLevelEvent();
    25   // Find the displayed child sheet (if aShown) or a child sheet that
    26   // wants to be displayed (if !aShown)
    27   nsCocoaWindow GetChildSheet(in boolean aShown);
    29   // Get the parent widget (if any) StandardCreate() was called with.
    30   nsIWidget GetRealParent();
    32   // If the object implementing this interface is a sheet, this will return the
    33   // native NSWindow it is attached to
    34   readonly attribute NSWindowPtr sheetWindowParent;
    36   // True if window is a sheet
    37   readonly attribute boolean isSheet;
    39 }; // nsPIWidgetCocoa

mercurial