Lines Matching refs:nsCocoaWindow

7 #include "nsCocoaWindow.h"
75 // also made app-modal.) See nsCocoaWindow::SetModal().
106 NS_IMPL_ISUPPORTS_INHERITED(nsCocoaWindow, Inherited, nsPIWidgetCocoa)
126 nsCocoaWindow::nsCocoaWindow() function
159 void nsCocoaWindow::DestroyNativeWindow() {
175 nsCocoaWindow::~nsCocoaWindow() { function
190 nsCocoaWindow* childWindow = static_cast<nsCocoaWindow*>(kid);
308 nsresult nsCocoaWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
364 nsresult nsCocoaWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
393 nsresult nsCocoaWindow::CreateNativeWindow(const NSRect& aRect, nsBorderStyle aBorderStyle,
563 nsresult nsCocoaWindow::CreatePopupContentView(const LayoutDeviceIntRect& aRect,
590 void nsCocoaWindow::Destroy() {
636 nsIWidget* nsCocoaWindow::GetSheetWindowParent(void) {
638 nsCocoaWindow* parent = static_cast<nsCocoaWindow*>(mParent);
640 parent = static_cast<nsCocoaWindow*>(parent->mParent);
644 void* nsCocoaWindow::GetNativeData(uint32_t aDataType) {
691 bool nsCocoaWindow::IsVisible() const {
699 void nsCocoaWindow::SetModal(bool aState) {
711 nsCocoaWindow* ancestor = static_cast<nsCocoaWindow*>(mAncestorLink);
731 ancestor = static_cast<nsCocoaWindow*>(ancestor->mParent);
743 NS_ASSERTION(gXULModalLevel >= 0, "Mismatched call to nsCocoaWindow::SetModal(false)!");
755 ancestor = static_cast<nsCocoaWindow*>(ancestor->mParent);
774 void nsCocoaWindow::SetFakeModal(bool aState) {
779 bool nsCocoaWindow::IsRunningAppModal() { return [NSApp _isRunningAppModal]; }
782 void nsCocoaWindow::Show(bool bState) {
1076 bool nsCocoaWindow::NeedsRecreateToReshow() {
1082 WindowRenderer* nsCocoaWindow::GetWindowRenderer() {
1089 nsTransparencyMode nsCocoaWindow::GetTransparencyMode() {
1098 void nsCocoaWindow::SetTransparencyMode(nsTransparencyMode aMode) {
1116 void nsCocoaWindow::Enable(bool aState) {}
1118 bool nsCocoaWindow::IsEnabled() const { return true; }
1122 void nsCocoaWindow::ConstrainPosition(bool aAllowSlop, int32_t* aX, int32_t* aY) {
1179 void nsCocoaWindow::SetSizeConstraints(const SizeConstraints& aConstraints) {
1220 void nsCocoaWindow::Move(double aX, double aY) {
1240 void nsCocoaWindow::SetSizeMode(nsSizeMode aMode) {
1332 void nsCocoaWindow::GetWorkspaceID(nsAString& workspaceID) {
1340 int32_t nsCocoaWindow::GetWorkspaceID() {
1374 void nsCocoaWindow::MoveToWorkspace(const nsAString& workspaceIDStr) {
1440 void nsCocoaWindow::SuppressAnimation(bool aSuppress) {
1455 void nsCocoaWindow::HideWindowChrome(bool aShouldHide) {
1529 nsCocoaWindow* mWindow;
1558 /* virtual */ bool nsCocoaWindow::PrepareForFullscreenTransition(nsISupports** aData) {
1592 /* virtual */ void nsCocoaWindow::CleanupFullscreenTransition() {
1597 /* virtual */ void nsCocoaWindow::PerformFullscreenTransition(FullscreenTransitionStage aStage,
1623 void nsCocoaWindow::WillEnterFullScreen(bool aFullScreen) {
1632 void nsCocoaWindow::EnteredFullScreen(bool aFullScreen, bool aNativeMode) {
1637 void nsCocoaWindow::UpdateFullscreenState(bool aFullScreen, bool aNativeMode) {
1655 inline bool nsCocoaWindow::ShouldToggleNativeFullscreen(bool aFullScreen,
1678 nsresult nsCocoaWindow::MakeFullScreen(bool aFullScreen) {
1682 nsresult nsCocoaWindow::MakeFullScreenWithNativeTransition(bool aFullScreen) {
1686 nsresult nsCocoaWindow::DoMakeFullScreen(bool aFullScreen, bool aUseSystemTransition) {
1729 void nsCocoaWindow::DoResize(double aX, double aY, double aWidth, double aHeight, bool aRepaint,
1790 void nsCocoaWindow::Resize(double aX, double aY, double aWidth, double aHeight, bool aRepaint) {
1795 void nsCocoaWindow::Resize(double aWidth, double aHeight, bool aRepaint) {
1803 NSRect nsCocoaWindow::GetClientCocoaRect() {
1811 LayoutDeviceIntRect nsCocoaWindow::GetClientBounds() {
1820 void nsCocoaWindow::UpdateBounds() {
1832 LayoutDeviceIntRect nsCocoaWindow::GetScreenBounds() {
1846 double nsCocoaWindow::GetDefaultScaleInternal() { return BackingScaleFactor(); }
1890 CGFloat nsCocoaWindow::BackingScaleFactor() {
1901 void nsCocoaWindow::BackingScaleFactorChanged() {
1922 int32_t nsCocoaWindow::RoundsWidgetCoordinatesTo() {
1929 void nsCocoaWindow::SetCursor(const Cursor& aCursor) {
1935 nsresult nsCocoaWindow::SetTitle(const nsAString& aTitle) {
1959 void nsCocoaWindow::Invalidate(const LayoutDeviceIntRect& aRect) {
1972 bool nsCocoaWindow::DragEvent(unsigned int aMessage, mozilla::gfx::Point aMouseGlobal,
1977 NS_IMETHODIMP nsCocoaWindow::SendSetZLevelEvent() {
1985 NS_IMETHODIMP nsCocoaWindow::GetChildSheet(bool aShown, nsIWidget** _retval) {
1990 // if it's a sheet, it must be an nsCocoaWindow
1991 nsCocoaWindow* cocoaWindow = static_cast<nsCocoaWindow*>(child);
2007 NS_IMETHODIMP nsCocoaWindow::GetRealParent(nsIWidget** parent) {
2012 NS_IMETHODIMP nsCocoaWindow::GetIsSheet(bool* isSheet) {
2017 NS_IMETHODIMP nsCocoaWindow::GetSheetWindowParent(NSWindow** sheetWindowParent) {
2023 nsresult nsCocoaWindow::DispatchEvent(WidgetGUIEvent* event, nsEventStatus& aStatus) {
2046 void nsCocoaWindow::ReportMoveEvent() {
2051 // nsCocoaWindow::Move() triggers an immediate NSWindowDidMove notification
2075 void nsCocoaWindow::DispatchSizeModeEvent() {
2103 void nsCocoaWindow::DispatchOcclusionEvent() {
2126 void nsCocoaWindow::ReportSizeEvent() {
2139 void nsCocoaWindow::PauseCompositor() {
2172 void nsCocoaWindow::ResumeCompositor() {
2205 void nsCocoaWindow::SetMenuBar(RefPtr<nsMenuBarX>&& aMenuBar) {
2220 void nsCocoaWindow::SetFocus(Raise aRaise, mozilla::dom::CallerType aCallerType) {
2237 LayoutDeviceIntPoint nsCocoaWindow::WidgetToScreenOffset() {
2246 LayoutDeviceIntPoint nsCocoaWindow::GetClientOffset() {
2256 LayoutDeviceIntSize nsCocoaWindow::ClientToWindowSize(const LayoutDeviceIntSize& aClientSize) {
2283 nsMenuBarX* nsCocoaWindow::GetMenuBar() { return mMenuBar; }
2285 void nsCocoaWindow::CaptureRollupEvents(nsIRollupListener* aListener, bool aDoCapture) {
2324 nsresult nsCocoaWindow::GetAttention(int32_t aCycleCount) {
2333 bool nsCocoaWindow::HasPendingInputEvent() { return nsChildView::DoHasPendingInputEvent(); }
2335 void nsCocoaWindow::SetWindowShadowStyle(StyleWindowShadow aStyle) {
2351 void nsCocoaWindow::SetWindowOpacity(float aOpacity) {
2363 void nsCocoaWindow::SetColorScheme(const Maybe<ColorScheme>& aScheme) {
2386 void nsCocoaWindow::SetWindowTransform(const gfx::Matrix& aTransform) {
2452 void nsCocoaWindow::SetWindowMouseTransparent(bool aIsTransparent) {
2461 void nsCocoaWindow::SetShowsToolbarButton(bool aShow) {
2469 void nsCocoaWindow::SetSupportsNativeFullscreen(bool aSupportsNativeFullscreen) {
2491 void nsCocoaWindow::SetWindowAnimationType(nsIWidget::WindowAnimationType aType) {
2495 void nsCocoaWindow::SetDrawsTitle(bool aDrawTitle) {
2509 nsresult nsCocoaWindow::SetNonClientMargins(LayoutDeviceIntMargin& margins) {
2519 void nsCocoaWindow::SetDrawsInTitlebar(bool aState) {
2527 NS_IMETHODIMP nsCocoaWindow::SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
2545 NS_IMETHODIMP nsCocoaWindow::SynthesizeNativeMouseScrollEvent(
2564 void nsCocoaWindow::LockAspectRatio(bool aShouldLock) {
2581 void nsCocoaWindow::UpdateThemeGeometries(const nsTArray<ThemeGeometry>& aThemeGeometries) {
2591 void nsCocoaWindow::SetPopupWindowLevel() {
2607 void nsCocoaWindow::SetInputContext(const InputContext& aContext,
2616 bool nsCocoaWindow::GetEditCommands(NativeKeyBindingsType aType, const WidgetKeyboardEvent& aEvent,
2632 bool nsCocoaWindow::AsyncPanZoomEnabled() const {
2639 bool nsCocoaWindow::StartAsyncAutoscroll(const ScreenPoint& aAnchorLocation,
2647 void nsCocoaWindow::StopAsyncAutoscroll(const ScrollableLayerGuid& aGuid) {
2656 nsCOMPtr<nsIWidget> window = new nsCocoaWindow();
2678 nsCocoaWindow* geckoWidget = [windowDelegate geckoWidget];
2711 - (id)initWithGeckoWindow:(nsCocoaWindow*)geckoWind { argument
2970 // nsCocoaWindow::Show(). If it's set, 'contextInfo' is always the top-
3006 - (nsCocoaWindow*)geckoWidget {
3688 static bool ScreenHasNotch(nsCocoaWindow* aGeckoWindow) {
3697 static bool ShouldShiftByMenubarHeightInFullscreen(nsCocoaWindow* aWindow) {
3734 nsCocoaWindow* geckoWindow = [windowDelegate geckoWidget];
3748 // DesktopToLayoutDeviceScale in nsCocoaWindow. The latter accounts for
3846 // by nsCocoaWindow::GetClientBounds. GetClientBounds bases its return
3849 nsCocoaWindow* geckoWindow = [windowDelegate geckoWidget];
3904 nsCocoaWindow* geckoWindow = [windowDelegate geckoWidget];
3949 nsCocoaWindow* widget = [(WindowDelegate*)delegate geckoWidget];
4067 nsCocoaWindow* widget = [(WindowDelegate*)delegate geckoWidget];