Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: ui/views/widget/native_widget_mac.h

Issue 1565243002: Fixes bug where client area would not get set correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/views/widget/native_widget_private.h" 10 #include "ui/views/widget/native_widget_private.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // This is usually called from the NSWindowDelegate. A derived class can 42 // This is usually called from the NSWindowDelegate. A derived class can
43 // override this method for an early hook into the native window teardown. 43 // override this method for an early hook into the native window teardown.
44 virtual void OnWindowWillClose(); 44 virtual void OnWindowWillClose();
45 45
46 // Returns the vertical position that sheets should be anchored, in pixels 46 // Returns the vertical position that sheets should be anchored, in pixels
47 // from the bottom of the window. 47 // from the bottom of the window.
48 virtual int SheetPositionY(); 48 virtual int SheetPositionY();
49 49
50 // internal::NativeWidgetPrivate: 50 // internal::NativeWidgetPrivate:
51 void InitNativeWidget(const Widget::InitParams& params) override; 51 void InitNativeWidget(const Widget::InitParams& params) override;
52 void OnWidgetInitDone() override;
52 NonClientFrameView* CreateNonClientFrameView() override; 53 NonClientFrameView* CreateNonClientFrameView() override;
53 bool ShouldUseNativeFrame() const override; 54 bool ShouldUseNativeFrame() const override;
54 bool ShouldWindowContentsBeTransparent() const override; 55 bool ShouldWindowContentsBeTransparent() const override;
55 void FrameTypeChanged() override; 56 void FrameTypeChanged() override;
56 Widget* GetWidget() override; 57 Widget* GetWidget() override;
57 const Widget* GetWidget() const override; 58 const Widget* GetWidget() const override;
58 gfx::NativeView GetNativeView() const override; 59 gfx::NativeView GetNativeView() const override;
59 gfx::NativeWindow GetNativeWindow() const override; 60 gfx::NativeWindow GetNativeWindow() const override;
60 Widget* GetTopLevelWidget() override; 61 Widget* GetTopLevelWidget() override;
61 const ui::Compositor* GetCompositor() const override; 62 const ui::Compositor* GetCompositor() const override;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 scoped_ptr<BridgedNativeWidget> bridge_; 150 scoped_ptr<BridgedNativeWidget> bridge_;
150 151
151 Widget::InitParams::Ownership ownership_; 152 Widget::InitParams::Ownership ownership_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 154 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
154 }; 155 };
155 156
156 } // namespace views 157 } // namespace views
157 158
158 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 159 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698