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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // The following factory is used for calls to close the NativeWidgetAura | 162 // The following factory is used for calls to close the NativeWidgetAura |
163 // instance. | 163 // instance. |
164 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 164 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
165 | 165 |
166 // Can we be made active? | 166 // Can we be made active? |
167 bool can_activate_; | 167 bool can_activate_; |
168 | 168 |
169 gfx::NativeCursor cursor_; | 169 gfx::NativeCursor cursor_; |
170 | 170 |
171 scoped_ptr<TooltipManagerViews> tooltip_manager_; | 171 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
172 | 172 |
173 scoped_ptr<DesktopObserverImpl> desktop_observer_; | 173 scoped_ptr<DesktopObserverImpl> desktop_observer_; |
174 | 174 |
175 scoped_ptr<DropHelper> drop_helper_; | 175 scoped_ptr<DropHelper> drop_helper_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace views | 180 } // namespace views |
181 | 181 |
182 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 182 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |