| 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_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/base/events/event_constants.h" | 10 #include "ui/base/events/event_constants.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class GestureEvent; | 21 class GestureEvent; |
| 22 class KeyEvent; | 22 class KeyEvent; |
| 23 class Layer; | 23 class Layer; |
| 24 class MouseEvent; | 24 class MouseEvent; |
| 25 class TouchEvent; | 25 class TouchEvent; |
| 26 class ScrollEvent; | 26 class ScrollEvent; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace views { | 29 namespace views { |
| 30 class InputMethod; | 30 class InputMethod; |
| 31 class Widget; |
| 31 | 32 |
| 32 namespace internal { | 33 namespace internal { |
| 33 | 34 |
| 34 //////////////////////////////////////////////////////////////////////////////// | 35 //////////////////////////////////////////////////////////////////////////////// |
| 35 // NativeWidgetDelegate | 36 // NativeWidgetDelegate |
| 36 // | 37 // |
| 37 // An interface implemented by the object that handles events sent by a | 38 // An interface implemented by the object that handles events sent by a |
| 38 // NativeWidget implementation. | 39 // NativeWidget implementation. |
| 39 // | 40 // |
| 40 class VIEWS_EXPORT NativeWidgetDelegate { | 41 class VIEWS_EXPORT NativeWidgetDelegate { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 // | 135 // |
| 135 virtual Widget* AsWidget() = 0; | 136 virtual Widget* AsWidget() = 0; |
| 136 virtual const Widget* AsWidget() const = 0; | 137 virtual const Widget* AsWidget() const = 0; |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace internal | 140 } // namespace internal |
| 140 } // namespace views | 141 } // namespace views |
| 141 | 142 |
| 142 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 143 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |