Bug 1880227 - Migrate Focus docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / widget / cocoa / nsPIWidgetCocoa.idl
blob54aa0d51136bcf4660a728c826f617bb7d5129c8
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 nsIWidget;
10 [ptr] native NSWindowPtr(NSWindow);
13 // nsPIWidgetCocoa
15 // A private interface (unfrozen, private to the widget implementation) that
16 // gives us access to some extra features on a widget/window.
18 [uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)]
19 interface nsPIWidgetCocoa : nsISupports
21 void SendSetZLevelEvent();
23 // Find the displayed child sheet (if aShown) or a child sheet that
24 // wants to be displayed (if !aShown)
25 nsIWidget GetChildSheet(in boolean aShown);
27 // Get the parent widget (if any) StandardCreate() was called with.
28 nsIWidget GetRealParent();
30 // If the object implementing this interface is a sheet, this will return the
31 // native NSWindow it is attached to
32 readonly attribute NSWindowPtr sheetWindowParent;
34 // True if window is a sheet
35 readonly attribute boolean isSheet;
37 }; // nsPIWidgetCocoa