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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
685 | 685 |
686 | 686 |
687 // See field for description. | 687 // See field for description. |
688 void set_notify_enter_exit_on_child(bool notify) { | 688 void set_notify_enter_exit_on_child(bool notify) { |
689 notify_enter_exit_on_child_ = notify; | 689 notify_enter_exit_on_child_ = notify; |
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 | |
696 // support text input. | |
697 virtual ui::TextInputClient* GetTextInputClient(); | |
698 | |
699 // Convenience method to retrieve the InputMethod associated with the | 695 // 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 | 696 // Widget that contains this view. |
701 // view hierarchy with a Widget. | 697 ui::InputMethod* GetInputMethod(); |
sky
2015/06/30 16:32:31
Inline this one and call to the const version. See
Shu Chen
2015/07/01 02:38:57
Done.
| |
702 virtual InputMethod* GetInputMethod(); | 698 const ui::InputMethod* GetInputMethod() const; |
703 virtual const InputMethod* GetInputMethod() const; | |
704 | 699 |
705 // Sets a new ViewTargeter for the view, and returns the previous | 700 // Sets a new ViewTargeter for the view, and returns the previous |
706 // ViewTargeter. | 701 // ViewTargeter. |
707 scoped_ptr<ViewTargeter> SetEventTargeter(scoped_ptr<ViewTargeter> targeter); | 702 scoped_ptr<ViewTargeter> SetEventTargeter(scoped_ptr<ViewTargeter> targeter); |
708 | 703 |
709 // Returns the ViewTargeter installed on |this| if one exists, | 704 // Returns the ViewTargeter installed on |this| if one exists, |
710 // otherwise returns the ViewTargeter installed on our root view. | 705 // otherwise returns the ViewTargeter installed on our root view. |
711 // The return value is guaranteed to be non-null. | 706 // The return value is guaranteed to be non-null. |
712 ViewTargeter* GetEffectiveViewTargeter() const; | 707 ViewTargeter* GetEffectiveViewTargeter() const; |
713 | 708 |
(...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 | 1561 // 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. | 1562 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1568 NativeViewAccessibility* native_view_accessibility_; | 1563 NativeViewAccessibility* native_view_accessibility_; |
1569 | 1564 |
1570 DISALLOW_COPY_AND_ASSIGN(View); | 1565 DISALLOW_COPY_AND_ASSIGN(View); |
1571 }; | 1566 }; |
1572 | 1567 |
1573 } // namespace views | 1568 } // namespace views |
1574 | 1569 |
1575 #endif // UI_VIEWS_VIEW_H_ | 1570 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |