1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/cocoa/nsPIWidgetCocoa.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsMenuBarX; 1.12 +interface nsCocoaWindow; 1.13 +interface nsIWidget; 1.14 + 1.15 +[ptr] native NSWindowPtr(NSWindow); 1.16 + 1.17 +// 1.18 +// nsPIWidgetCocoa 1.19 +// 1.20 +// A private interface (unfrozen, private to the widget implementation) that 1.21 +// gives us access to some extra features on a widget/window. 1.22 +// 1.23 +[uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)] 1.24 +interface nsPIWidgetCocoa : nsISupports 1.25 +{ 1.26 + void SendSetZLevelEvent(); 1.27 + 1.28 + // Find the displayed child sheet (if aShown) or a child sheet that 1.29 + // wants to be displayed (if !aShown) 1.30 + nsCocoaWindow GetChildSheet(in boolean aShown); 1.31 + 1.32 + // Get the parent widget (if any) StandardCreate() was called with. 1.33 + nsIWidget GetRealParent(); 1.34 + 1.35 + // If the object implementing this interface is a sheet, this will return the 1.36 + // native NSWindow it is attached to 1.37 + readonly attribute NSWindowPtr sheetWindowParent; 1.38 + 1.39 + // True if window is a sheet 1.40 + readonly attribute boolean isSheet; 1.41 + 1.42 +}; // nsPIWidgetCocoa