2006-06-08 21:29:18 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-05-17 22:53:58 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2008-05-08 01:15:57 +04:00
|
|
|
interface nsIWidget;
|
2006-05-17 22:53:58 +04:00
|
|
|
|
2006-06-08 21:29:18 +04:00
|
|
|
[ptr] native NSWindowPtr(NSWindow);
|
|
|
|
|
2006-05-17 22:53:58 +04:00
|
|
|
//
|
|
|
|
// nsPIWidgetCocoa
|
|
|
|
//
|
|
|
|
// A private interface (unfrozen, private to the widget implementation) that
|
|
|
|
// gives us access to some extra features on a widget/window.
|
|
|
|
//
|
2008-10-31 13:31:43 +03:00
|
|
|
[uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)]
|
2006-05-17 22:53:58 +04:00
|
|
|
interface nsPIWidgetCocoa : nsISupports
|
|
|
|
{
|
2006-10-04 00:38:38 +04:00
|
|
|
void SendSetZLevelEvent();
|
2006-05-17 22:53:58 +04:00
|
|
|
|
|
|
|
// Find the displayed child sheet (if aShown) or a child sheet that
|
|
|
|
// wants to be displayed (if !aShown)
|
2016-08-12 00:51:11 +03:00
|
|
|
nsIWidget GetChildSheet(in boolean aShown);
|
2006-06-08 21:29:18 +04:00
|
|
|
|
2008-05-08 01:15:57 +04:00
|
|
|
// Get the parent widget (if any) StandardCreate() was called with.
|
|
|
|
nsIWidget GetRealParent();
|
|
|
|
|
2006-06-08 21:29:18 +04:00
|
|
|
// If the object implementing this interface is a sheet, this will return the
|
|
|
|
// native NSWindow it is attached to
|
|
|
|
readonly attribute NSWindowPtr sheetWindowParent;
|
2006-05-17 22:53:58 +04:00
|
|
|
|
|
|
|
// True if window is a sheet
|
|
|
|
readonly attribute boolean isSheet;
|
|
|
|
|
|
|
|
}; // nsPIWidgetCocoa
|