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_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_ |
7 | 7 |
8 #include "views/native_types.h" | 8 #include "views/native_types.h" |
9 | 9 |
10 namespace gfx{ | 10 namespace gfx{ |
11 class Path; | 11 class Path; |
12 class Rect; | 12 class Rect; |
13 } | 13 } |
14 | 14 |
| 15 namespace ui { |
| 16 class OSExchangeData; |
| 17 } |
| 18 |
15 namespace views { | 19 namespace views { |
16 namespace internal { | 20 namespace internal { |
17 class NativeWidgetListener; | 21 class NativeWidgetListener; |
18 } | 22 } |
19 class View; | 23 class View; |
20 class WidgetImpl; | 24 class WidgetImpl; |
21 | 25 |
22 //////////////////////////////////////////////////////////////////////////////// | 26 //////////////////////////////////////////////////////////////////////////////// |
23 // NativeWidget interface | 27 // NativeWidget interface |
24 // | 28 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool IsVisible() const = 0; | 66 virtual bool IsVisible() const = 0; |
63 virtual bool IsActive() const = 0; | 67 virtual bool IsActive() const = 0; |
64 virtual void SetMouseCapture() = 0; | 68 virtual void SetMouseCapture() = 0; |
65 virtual void ReleaseMouseCapture() = 0; | 69 virtual void ReleaseMouseCapture() = 0; |
66 virtual bool HasMouseCapture() const = 0; | 70 virtual bool HasMouseCapture() const = 0; |
67 virtual bool ShouldReleaseCaptureOnMouseReleased() const = 0; | 71 virtual bool ShouldReleaseCaptureOnMouseReleased() const = 0; |
68 virtual void Invalidate() = 0; | 72 virtual void Invalidate() = 0; |
69 virtual void InvalidateRect(const gfx::Rect& invalid_rect) = 0; | 73 virtual void InvalidateRect(const gfx::Rect& invalid_rect) = 0; |
70 virtual void Paint() = 0; | 74 virtual void Paint() = 0; |
71 virtual void FocusNativeView(gfx::NativeView native_view) = 0; | 75 virtual void FocusNativeView(gfx::NativeView native_view) = 0; |
| 76 virtual void RunShellDrag(const ui::OSExchangeData& data, int operation) = 0; |
72 virtual WidgetImpl* GetWidgetImpl() = 0; | 77 virtual WidgetImpl* GetWidgetImpl() = 0; |
73 virtual const WidgetImpl* GetWidgetImpl() const = 0; | 78 virtual const WidgetImpl* GetWidgetImpl() const = 0; |
74 }; | 79 }; |
75 | 80 |
76 } // namespace views | 81 } // namespace views |
77 | 82 |
78 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ | 83 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ |
79 | 84 |
OLD | NEW |