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_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <stack> | 9 #include <stack> |
10 #include <vector> | 10 #include <vector> |
(...skipping 26 matching lines...) Expand all Loading... |
37 namespace gfx { | 37 namespace gfx { |
38 class Canvas; | 38 class Canvas; |
39 class Point; | 39 class Point; |
40 class Rect; | 40 class Rect; |
41 } | 41 } |
42 | 42 |
43 namespace ui { | 43 namespace ui { |
44 class Accelerator; | 44 class Accelerator; |
45 class Compositor; | 45 class Compositor; |
46 class DefaultThemeProvider; | 46 class DefaultThemeProvider; |
| 47 class InputMethod; |
47 class Layer; | 48 class Layer; |
48 class NativeTheme; | 49 class NativeTheme; |
49 class OSExchangeData; | 50 class OSExchangeData; |
50 class ThemeProvider; | 51 class ThemeProvider; |
51 } | 52 } |
52 | 53 |
53 namespace views { | 54 namespace views { |
54 | 55 |
55 class DesktopWindowTreeHost; | 56 class DesktopWindowTreeHost; |
56 class InputMethod; | 57 class InputMethod; |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // Returns the FocusManager for this widget. | 521 // Returns the FocusManager for this widget. |
521 // Note that all widgets in a widget hierarchy share the same focus manager. | 522 // Note that all widgets in a widget hierarchy share the same focus manager. |
522 FocusManager* GetFocusManager(); | 523 FocusManager* GetFocusManager(); |
523 const FocusManager* GetFocusManager() const; | 524 const FocusManager* GetFocusManager() const; |
524 | 525 |
525 // Returns the InputMethod for this widget. | 526 // Returns the InputMethod for this widget. |
526 // Note that all widgets in a widget hierarchy share the same input method. | 527 // Note that all widgets in a widget hierarchy share the same input method. |
527 InputMethod* GetInputMethod(); | 528 InputMethod* GetInputMethod(); |
528 const InputMethod* GetInputMethod() const; | 529 const InputMethod* GetInputMethod() const; |
529 | 530 |
| 531 // Returns the ui::InputMethod for this widget. |
| 532 // TODO(yukishiino): Rename this method to GetInputMethod once we remove |
| 533 // views::InputMethod. |
| 534 ui::InputMethod* GetHostInputMethod(); |
| 535 |
530 // Starts a drag operation for the specified view. This blocks until the drag | 536 // Starts a drag operation for the specified view. This blocks until the drag |
531 // operation completes. |view| can be NULL. | 537 // operation completes. |view| can be NULL. |
532 // If the view is non-NULL it can be accessed during the drag by calling | 538 // If the view is non-NULL it can be accessed during the drag by calling |
533 // dragged_view(). If the view has not been deleted during the drag, | 539 // dragged_view(). If the view has not been deleted during the drag, |
534 // OnDragDone() is called on it. |location| is in the widget's coordinate | 540 // OnDragDone() is called on it. |location| is in the widget's coordinate |
535 // system. | 541 // system. |
536 void RunShellDrag(View* view, | 542 void RunShellDrag(View* view, |
537 const ui::OSExchangeData& data, | 543 const ui::OSExchangeData& data, |
538 const gfx::Point& location, | 544 const gfx::Point& location, |
539 int operation, | 545 int operation, |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // True when window movement via mouse interaction with the frame should be | 896 // True when window movement via mouse interaction with the frame should be |
891 // disabled. | 897 // disabled. |
892 bool movement_disabled_; | 898 bool movement_disabled_; |
893 | 899 |
894 DISALLOW_COPY_AND_ASSIGN(Widget); | 900 DISALLOW_COPY_AND_ASSIGN(Widget); |
895 }; | 901 }; |
896 | 902 |
897 } // namespace views | 903 } // namespace views |
898 | 904 |
899 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 905 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |