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

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

Issue 329743002: MacViews: Initial skeleton for implementing NativeWidgetMac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/views.gyp ('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/mac/scoped_nsobject.h"
9 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
10 #include "ui/views/widget/native_widget_private.h" 9 #include "ui/views/widget/native_widget_private.h"
11 10
12 namespace views { 11 namespace views {
13 12
13 class BridgedNativeWidget;
14
14 class VIEWS_EXPORT NativeWidgetMac : public internal::NativeWidgetPrivate { 15 class VIEWS_EXPORT NativeWidgetMac : public internal::NativeWidgetPrivate {
15 public: 16 public:
16 NativeWidgetMac(internal::NativeWidgetDelegate* delegate); 17 NativeWidgetMac(internal::NativeWidgetDelegate* delegate);
17 virtual ~NativeWidgetMac(); 18 virtual ~NativeWidgetMac();
18 19
19 protected: 20 protected:
20 // internal::NativeWidgetPrivate: 21 // internal::NativeWidgetPrivate:
21 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 22 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
22 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 23 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
23 virtual bool ShouldUseNativeFrame() const OVERRIDE; 24 virtual bool ShouldUseNativeFrame() const OVERRIDE;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Widget::MoveLoopSource source, 99 Widget::MoveLoopSource source,
99 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 100 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
100 virtual void EndMoveLoop() OVERRIDE; 101 virtual void EndMoveLoop() OVERRIDE;
101 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 102 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
102 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 103 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
103 virtual void OnRootViewLayout() const OVERRIDE; 104 virtual void OnRootViewLayout() const OVERRIDE;
104 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; 105 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE;
105 106
106 private: 107 private:
107 internal::NativeWidgetDelegate* delegate_; 108 internal::NativeWidgetDelegate* delegate_;
108 base::scoped_nsobject<NSWindow> window_; 109 scoped_ptr<BridgedNativeWidget> bridge_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 111 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
111 }; 112 };
112 113
113 } // namespace views 114 } // namespace views
114 115
115 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 116 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698