| 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_DELEGATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/views_export.h" | 9 #include "views/views_export.h" |
| 10 #include "ui/base/events.h" |
| 10 | 11 |
| 11 namespace gfx { | 12 namespace gfx { |
| 12 class Canvas; | 13 class Canvas; |
| 14 class Point; |
| 13 class Size; | 15 class Size; |
| 14 } | 16 } |
| 15 | 17 |
| 16 #if defined(TOUCH_UI) | |
| 17 namespace ui { | |
| 18 enum TouchStatus; | |
| 19 } | |
| 20 #endif | |
| 21 | |
| 22 namespace views { | 18 namespace views { |
| 23 class InputMethod; | 19 class InputMethod; |
| 20 class KeyEvent; |
| 21 class MouseEvent; |
| 22 class TouchEvent; |
| 24 | 23 |
| 25 namespace internal { | 24 namespace internal { |
| 26 | 25 |
| 27 //////////////////////////////////////////////////////////////////////////////// | 26 //////////////////////////////////////////////////////////////////////////////// |
| 28 // NativeWidgetDelegate | 27 // NativeWidgetDelegate |
| 29 // | 28 // |
| 30 // An interface implemented by the object that handles events sent by a | 29 // An interface implemented by the object that handles events sent by a |
| 31 // NativeWidget implementation. | 30 // NativeWidget implementation. |
| 32 // | 31 // |
| 33 class VIEWS_EXPORT NativeWidgetDelegate { | 32 class VIEWS_EXPORT NativeWidgetDelegate { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 107 |
| 109 // | 108 // |
| 110 virtual Widget* AsWidget() = 0; | 109 virtual Widget* AsWidget() = 0; |
| 111 virtual const Widget* AsWidget() const = 0; | 110 virtual const Widget* AsWidget() const = 0; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } // namespace internal | 113 } // namespace internal |
| 115 } // namespace views | 114 } // namespace views |
| 116 | 115 |
| 117 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 116 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |