| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ui/aura/client/activation_delegate.h" | 10 #include "ui/aura/client/activation_delegate.h" |
| 11 #include "ui/aura/client/drag_drop_delegate.h" | 11 #include "ui/aura/client/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/ime/input_method_delegate.h" |
| 14 #include "ui/views/views_export.h" | 15 #include "ui/views/views_export.h" |
| 15 #include "ui/views/widget/native_widget_private.h" | 16 #include "ui/views/widget/native_widget_private.h" |
| 16 | 17 |
| 17 namespace aura { | 18 namespace aura { |
| 18 class Window; | 19 class Window; |
| 19 } | 20 } |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class Font; | 22 class Font; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace views { | 25 namespace views { |
| 25 | 26 |
| 26 class DropHelper; | 27 class DropHelper; |
| 27 class NativeWidgetHelperAura; | 28 class NativeWidgetHelperAura; |
| 28 class TooltipManagerAura; | 29 class TooltipManagerAura; |
| 29 | 30 |
| 30 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, | 31 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, |
| 32 public internal::InputMethodDelegate, |
| 31 public aura::WindowDelegate, | 33 public aura::WindowDelegate, |
| 32 public aura::client::ActivationDelegate, | 34 public aura::client::ActivationDelegate, |
| 33 public aura::client::DragDropDelegate { | 35 public aura::client::DragDropDelegate { |
| 34 public: | 36 public: |
| 35 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 37 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
| 36 | 38 |
| 37 // TODO(beng): Find a better place for this, and the similar method on | 39 // TODO(beng): Find a better place for this, and the similar method on |
| 38 // NativeWidgetWin. | 40 // NativeWidgetWin. |
| 39 static gfx::Font GetWindowTitleFont(); | 41 static gfx::Font GetWindowTitleFont(); |
| 40 | 42 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 59 virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE; | 61 virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE; |
| 60 virtual TooltipManager* GetTooltipManager() const OVERRIDE; | 62 virtual TooltipManager* GetTooltipManager() const OVERRIDE; |
| 61 virtual bool IsScreenReaderActive() const OVERRIDE; | 63 virtual bool IsScreenReaderActive() const OVERRIDE; |
| 62 virtual void SendNativeAccessibilityEvent( | 64 virtual void SendNativeAccessibilityEvent( |
| 63 View* view, | 65 View* view, |
| 64 ui::AccessibilityTypes::Event event_type) OVERRIDE; | 66 ui::AccessibilityTypes::Event event_type) OVERRIDE; |
| 65 virtual void SetCapture() OVERRIDE; | 67 virtual void SetCapture() OVERRIDE; |
| 66 virtual void ReleaseCapture() OVERRIDE; | 68 virtual void ReleaseCapture() OVERRIDE; |
| 67 virtual bool HasCapture() const OVERRIDE; | 69 virtual bool HasCapture() const OVERRIDE; |
| 68 virtual InputMethod* CreateInputMethod() OVERRIDE; | 70 virtual InputMethod* CreateInputMethod() OVERRIDE; |
| 71 virtual internal::InputMethodDelegate* GetInputMethodDelegate() OVERRIDE; |
| 69 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; | 72 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |
| 70 virtual void GetWindowPlacement( | 73 virtual void GetWindowPlacement( |
| 71 gfx::Rect* bounds, | 74 gfx::Rect* bounds, |
| 72 ui::WindowShowState* maximized) const OVERRIDE; | 75 ui::WindowShowState* maximized) const OVERRIDE; |
| 73 virtual void SetWindowTitle(const string16& title) OVERRIDE; | 76 virtual void SetWindowTitle(const string16& title) OVERRIDE; |
| 74 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 77 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
| 75 const gfx::ImageSkia& app_icon) OVERRIDE; | 78 const gfx::ImageSkia& app_icon) OVERRIDE; |
| 76 virtual void SetAccessibleName(const string16& name) OVERRIDE; | 79 virtual void SetAccessibleName(const string16& name) OVERRIDE; |
| 77 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; | 80 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; |
| 78 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; | 81 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 207 |
| 205 scoped_ptr<DropHelper> drop_helper_; | 208 scoped_ptr<DropHelper> drop_helper_; |
| 206 int last_drop_operation_; | 209 int last_drop_operation_; |
| 207 | 210 |
| 208 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 211 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 209 }; | 212 }; |
| 210 | 213 |
| 211 } // namespace views | 214 } // namespace views |
| 212 | 215 |
| 213 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |