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 27 matching lines...) Expand all Loading... |
38 namespace gfx { | 38 namespace gfx { |
39 class Canvas; | 39 class Canvas; |
40 class Point; | 40 class Point; |
41 class Rect; | 41 class Rect; |
42 } | 42 } |
43 | 43 |
44 namespace ui { | 44 namespace ui { |
45 class Accelerator; | 45 class Accelerator; |
46 class Compositor; | 46 class Compositor; |
47 class DefaultThemeProvider; | 47 class DefaultThemeProvider; |
| 48 class InputMethod; |
48 class Layer; | 49 class Layer; |
49 class NativeTheme; | 50 class NativeTheme; |
50 class OSExchangeData; | 51 class OSExchangeData; |
51 class ThemeProvider; | 52 class ThemeProvider; |
52 } | 53 } |
53 | 54 |
54 namespace views { | 55 namespace views { |
55 | 56 |
56 class DesktopWindowTreeHost; | 57 class DesktopWindowTreeHost; |
57 class InputMethod; | 58 class InputMethod; |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 // Returns the FocusManager for this widget. | 532 // Returns the FocusManager for this widget. |
532 // Note that all widgets in a widget hierarchy share the same focus manager. | 533 // Note that all widgets in a widget hierarchy share the same focus manager. |
533 FocusManager* GetFocusManager(); | 534 FocusManager* GetFocusManager(); |
534 const FocusManager* GetFocusManager() const; | 535 const FocusManager* GetFocusManager() const; |
535 | 536 |
536 // Returns the InputMethod for this widget. | 537 // Returns the InputMethod for this widget. |
537 // Note that all widgets in a widget hierarchy share the same input method. | 538 // Note that all widgets in a widget hierarchy share the same input method. |
538 InputMethod* GetInputMethod(); | 539 InputMethod* GetInputMethod(); |
539 const InputMethod* GetInputMethod() const; | 540 const InputMethod* GetInputMethod() const; |
540 | 541 |
| 542 // Returns the ui::InputMethod for this widget. |
| 543 // TODO(yukishiino): Rename this method to GetInputMethod once we remove |
| 544 // views::InputMethod. |
| 545 ui::InputMethod* GetHostInputMethod(); |
| 546 |
541 // Starts a drag operation for the specified view. This blocks until the drag | 547 // Starts a drag operation for the specified view. This blocks until the drag |
542 // operation completes. |view| can be NULL. | 548 // operation completes. |view| can be NULL. |
543 // If the view is non-NULL it can be accessed during the drag by calling | 549 // If the view is non-NULL it can be accessed during the drag by calling |
544 // dragged_view(). If the view has not been deleted during the drag, | 550 // dragged_view(). If the view has not been deleted during the drag, |
545 // OnDragDone() is called on it. |location| is in the widget's coordinate | 551 // OnDragDone() is called on it. |location| is in the widget's coordinate |
546 // system. | 552 // system. |
547 void RunShellDrag(View* view, | 553 void RunShellDrag(View* view, |
548 const ui::OSExchangeData& data, | 554 const ui::OSExchangeData& data, |
549 const gfx::Point& location, | 555 const gfx::Point& location, |
550 int operation, | 556 int operation, |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 // True when window movement via mouse interaction with the frame should be | 911 // True when window movement via mouse interaction with the frame should be |
906 // disabled. | 912 // disabled. |
907 bool movement_disabled_; | 913 bool movement_disabled_; |
908 | 914 |
909 DISALLOW_COPY_AND_ASSIGN(Widget); | 915 DISALLOW_COPY_AND_ASSIGN(Widget); |
910 }; | 916 }; |
911 | 917 |
912 } // namespace views | 918 } // namespace views |
913 | 919 |
914 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 920 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |