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_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 namespace gfx { | 43 namespace gfx { |
44 class Canvas; | 44 class Canvas; |
45 class Insets; | 45 class Insets; |
46 class Path; | 46 class Path; |
47 class Transform; | 47 class Transform; |
48 } | 48 } |
49 | 49 |
50 namespace ui { | 50 namespace ui { |
51 struct AXViewState; | 51 struct AXViewState; |
52 class Compositor; | 52 class Compositor; |
| 53 class InputMethod; |
53 class Layer; | 54 class Layer; |
54 class NativeTheme; | 55 class NativeTheme; |
55 class PaintContext; | 56 class PaintContext; |
56 class TextInputClient; | 57 class TextInputClient; |
57 class Texture; | 58 class Texture; |
58 class ThemeProvider; | 59 class ThemeProvider; |
59 } | 60 } |
60 | 61 |
61 namespace views { | 62 namespace views { |
62 | 63 |
63 class Background; | 64 class Background; |
64 class Border; | 65 class Border; |
65 class ContextMenuController; | 66 class ContextMenuController; |
66 class DragController; | 67 class DragController; |
67 class FocusManager; | 68 class FocusManager; |
68 class FocusTraversable; | 69 class FocusTraversable; |
69 class InputMethod; | |
70 class LayoutManager; | 70 class LayoutManager; |
71 class NativeViewAccessibility; | 71 class NativeViewAccessibility; |
72 class ScrollView; | 72 class ScrollView; |
73 class Widget; | 73 class Widget; |
74 | 74 |
75 namespace internal { | 75 namespace internal { |
76 class PreEventDispatchHandler; | 76 class PreEventDispatchHandler; |
77 class PostEventDispatchHandler; | 77 class PostEventDispatchHandler; |
78 class RootView; | 78 class RootView; |
79 } | 79 } |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 } | 690 } |
691 bool notify_enter_exit_on_child() const { | 691 bool notify_enter_exit_on_child() const { |
692 return notify_enter_exit_on_child_; | 692 return notify_enter_exit_on_child_; |
693 } | 693 } |
694 | 694 |
695 // Returns the View's TextInputClient instance or NULL if the View doesn't | 695 // Returns the View's TextInputClient instance or NULL if the View doesn't |
696 // support text input. | 696 // support text input. |
697 virtual ui::TextInputClient* GetTextInputClient(); | 697 virtual ui::TextInputClient* GetTextInputClient(); |
698 | 698 |
699 // Convenience method to retrieve the InputMethod associated with the | 699 // Convenience method to retrieve the InputMethod associated with the |
700 // Widget that contains this view. Returns NULL if this view is not part of a | 700 // Widget that contains this view. |
701 // view hierarchy with a Widget. | 701 ui::InputMethod* GetInputMethod(); |
702 virtual InputMethod* GetInputMethod(); | 702 const ui::InputMethod* GetInputMethod() const; |
703 virtual const InputMethod* GetInputMethod() const; | |
704 | 703 |
705 // Sets a new ViewTargeter for the view, and returns the previous | 704 // Sets a new ViewTargeter for the view, and returns the previous |
706 // ViewTargeter. | 705 // ViewTargeter. |
707 scoped_ptr<ViewTargeter> SetEventTargeter(scoped_ptr<ViewTargeter> targeter); | 706 scoped_ptr<ViewTargeter> SetEventTargeter(scoped_ptr<ViewTargeter> targeter); |
708 | 707 |
709 // Returns the ViewTargeter installed on |this| if one exists, | 708 // Returns the ViewTargeter installed on |this| if one exists, |
710 // otherwise returns the ViewTargeter installed on our root view. | 709 // otherwise returns the ViewTargeter installed on our root view. |
711 // The return value is guaranteed to be non-null. | 710 // The return value is guaranteed to be non-null. |
712 ViewTargeter* GetEffectiveViewTargeter() const; | 711 ViewTargeter* GetEffectiveViewTargeter() const; |
713 | 712 |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 // Belongs to this view, but it's reference-counted on some platforms | 1565 // Belongs to this view, but it's reference-counted on some platforms |
1567 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1566 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1568 NativeViewAccessibility* native_view_accessibility_; | 1567 NativeViewAccessibility* native_view_accessibility_; |
1569 | 1568 |
1570 DISALLOW_COPY_AND_ASSIGN(View); | 1569 DISALLOW_COPY_AND_ASSIGN(View); |
1571 }; | 1570 }; |
1572 | 1571 |
1573 } // namespace views | 1572 } // namespace views |
1574 | 1573 |
1575 #endif // UI_VIEWS_VIEW_H_ | 1574 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |