Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsMenuBarX; |
michael@0 | 9 | interface nsCocoaWindow; |
michael@0 | 10 | interface nsIWidget; |
michael@0 | 11 | |
michael@0 | 12 | [ptr] native NSWindowPtr(NSWindow); |
michael@0 | 13 | |
michael@0 | 14 | // |
michael@0 | 15 | // nsPIWidgetCocoa |
michael@0 | 16 | // |
michael@0 | 17 | // A private interface (unfrozen, private to the widget implementation) that |
michael@0 | 18 | // gives us access to some extra features on a widget/window. |
michael@0 | 19 | // |
michael@0 | 20 | [uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)] |
michael@0 | 21 | interface nsPIWidgetCocoa : nsISupports |
michael@0 | 22 | { |
michael@0 | 23 | void SendSetZLevelEvent(); |
michael@0 | 24 | |
michael@0 | 25 | // Find the displayed child sheet (if aShown) or a child sheet that |
michael@0 | 26 | // wants to be displayed (if !aShown) |
michael@0 | 27 | nsCocoaWindow GetChildSheet(in boolean aShown); |
michael@0 | 28 | |
michael@0 | 29 | // Get the parent widget (if any) StandardCreate() was called with. |
michael@0 | 30 | nsIWidget GetRealParent(); |
michael@0 | 31 | |
michael@0 | 32 | // If the object implementing this interface is a sheet, this will return the |
michael@0 | 33 | // native NSWindow it is attached to |
michael@0 | 34 | readonly attribute NSWindowPtr sheetWindowParent; |
michael@0 | 35 | |
michael@0 | 36 | // True if window is a sheet |
michael@0 | 37 | readonly attribute boolean isSheet; |
michael@0 | 38 | |
michael@0 | 39 | }; // nsPIWidgetCocoa |