OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/aura/window_delegate.h" | 9 #include "ui/aura/window_delegate.h" |
| 10 #include "views/views_export.h" |
10 #include "views/widget/native_widget_private.h" | 11 #include "views/widget/native_widget_private.h" |
11 | 12 |
12 namespace aura { | 13 namespace aura { |
13 class Window; | 14 class Window; |
14 } | 15 } |
15 namespace gfx { | 16 namespace gfx { |
16 class Font; | 17 class Font; |
17 } | 18 } |
18 | 19 |
19 namespace views { | 20 namespace views { |
20 | 21 |
21 class NativeWidgetAura : public internal::NativeWidgetPrivate, | 22 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, |
22 public aura::WindowDelegate { | 23 public aura::WindowDelegate { |
23 public: | 24 public: |
24 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 25 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
25 virtual ~NativeWidgetAura(); | 26 virtual ~NativeWidgetAura(); |
26 | 27 |
27 // TODO(beng): Find a better place for this, and the similar method on | 28 // TODO(beng): Find a better place for this, and the similar method on |
28 // NativeWidgetWin. | 29 // NativeWidgetWin. |
29 static gfx::Font GetWindowTitleFont(); | 30 static gfx::Font GetWindowTitleFont(); |
30 | 31 |
31 // Overridden from internal::NativeWidgetPrivate: | 32 // Overridden from internal::NativeWidgetPrivate: |
32 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; | 33 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // The following factory is used for calls to close the NativeWidgetAura | 139 // The following factory is used for calls to close the NativeWidgetAura |
139 // instance. | 140 // instance. |
140 ScopedRunnableMethodFactory<NativeWidgetAura> close_widget_factory_; | 141 ScopedRunnableMethodFactory<NativeWidgetAura> close_widget_factory_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 143 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace views | 146 } // namespace views |
146 | 147 |
147 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 148 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |