| 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/events/event_constants.h" | 10 #include "ui/events/event_constants.h" |
| 11 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 class Canvas; | |
| 15 class Path; | 14 class Path; |
| 16 class Point; | 15 class Point; |
| 17 class Size; | 16 class Size; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace ui { | 19 namespace ui { |
| 21 class GestureEvent; | 20 class GestureEvent; |
| 22 class KeyEvent; | 21 class KeyEvent; |
| 23 class Layer; | 22 class Layer; |
| 24 class MouseEvent; | 23 class MouseEvent; |
| 25 class PaintContext; | 24 class PaintContext; |
| 26 class ScrollEvent; | 25 class ScrollEvent; |
| 27 class TouchEvent; | |
| 28 } | 26 } |
| 29 | 27 |
| 30 namespace views { | 28 namespace views { |
| 31 class Widget; | 29 class Widget; |
| 32 | 30 |
| 33 namespace internal { | 31 namespace internal { |
| 34 | 32 |
| 35 //////////////////////////////////////////////////////////////////////////////// | 33 //////////////////////////////////////////////////////////////////////////////// |
| 36 // NativeWidgetDelegate | 34 // NativeWidgetDelegate |
| 37 // | 35 // |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // later. Returns true if the initial focus has been set or the window should | 146 // later. Returns true if the initial focus has been set or the window should |
| 149 // not set the initial focus, or false if the caller should set the initial | 147 // not set the initial focus, or false if the caller should set the initial |
| 150 // focus (if any). | 148 // focus (if any). |
| 151 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; | 149 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; |
| 152 }; | 150 }; |
| 153 | 151 |
| 154 } // namespace internal | 152 } // namespace internal |
| 155 } // namespace views | 153 } // namespace views |
| 156 | 154 |
| 157 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 155 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |