|
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/. */ |
|
5 |
|
6 #include "nsISupports.idl" |
|
7 |
|
8 interface nsMenuBarX; |
|
9 interface nsCocoaWindow; |
|
10 interface nsIWidget; |
|
11 |
|
12 [ptr] native NSWindowPtr(NSWindow); |
|
13 |
|
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(); |
|
24 |
|
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); |
|
28 |
|
29 // Get the parent widget (if any) StandardCreate() was called with. |
|
30 nsIWidget GetRealParent(); |
|
31 |
|
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; |
|
35 |
|
36 // True if window is a sheet |
|
37 readonly attribute boolean isSheet; |
|
38 |
|
39 }; // nsPIWidgetCocoa |