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 UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "ui/aura/client/window_drag_drop_delegate.h" | 11 #include "ui/aura/client/window_drag_drop_delegate.h" |
12 #include "ui/aura/window_delegate.h" | 12 #include "ui/aura/window_delegate.h" |
13 #include "ui/base/events.h" | 13 #include "ui/base/events.h" |
14 #include "ui/views/widget/native_widget_private.h" | 14 #include "ui/views/widget/native_widget_private.h" |
15 #include "views/views_export.h" | 15 #include "views/views_export.h" |
16 | 16 |
17 namespace aura { | 17 namespace aura { |
18 class Window; | 18 class Window; |
19 } | 19 } |
20 namespace gfx { | 20 namespace gfx { |
21 class Font; | 21 class Font; |
22 } | 22 } |
23 | 23 |
24 namespace views { | 24 namespace views { |
25 | 25 |
26 class DropHelper; | 26 class DropHelper; |
27 class TooltipManagerViews; | 27 class TooltipManagerAura; |
28 | 28 |
29 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, | 29 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, |
30 public aura::WindowDelegate, | 30 public aura::WindowDelegate, |
31 public aura::WindowDragDropDelegate { | 31 public aura::WindowDragDropDelegate { |
32 public: | 32 public: |
33 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 33 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
34 virtual ~NativeWidgetAura(); | 34 virtual ~NativeWidgetAura(); |
35 | 35 |
36 // TODO(beng): Find a better place for this, and the similar method on | 36 // TODO(beng): Find a better place for this, and the similar method on |
37 // NativeWidgetWin. | 37 // NativeWidgetWin. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 // The following factory is used for calls to close the NativeWidgetAura | 163 // The following factory is used for calls to close the NativeWidgetAura |
164 // instance. | 164 // instance. |
165 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 165 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
166 | 166 |
167 // Can we be made active? | 167 // Can we be made active? |
168 bool can_activate_; | 168 bool can_activate_; |
169 | 169 |
170 gfx::NativeCursor cursor_; | 170 gfx::NativeCursor cursor_; |
171 | 171 |
172 scoped_ptr<TooltipManagerViews> tooltip_manager_; | 172 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
173 | 173 |
174 scoped_ptr<DesktopObserverImpl> desktop_observer_; | 174 scoped_ptr<DesktopObserverImpl> desktop_observer_; |
175 | 175 |
176 scoped_ptr<DropHelper> drop_helper_; | 176 scoped_ptr<DropHelper> drop_helper_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 178 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace views | 181 } // namespace views |
182 | 182 |
183 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 183 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |