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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 class Background; | 61 class Background; |
62 class Border; | 62 class Border; |
63 class ContextMenuController; | 63 class ContextMenuController; |
64 class DragController; | 64 class DragController; |
65 class FocusManager; | 65 class FocusManager; |
66 class FocusTraversable; | 66 class FocusTraversable; |
67 class InputMethod; | 67 class InputMethod; |
68 class LayoutManager; | 68 class LayoutManager; |
69 class NativeViewAccessibility; | 69 class NativeViewAccessibility; |
| 70 class NSViewBridge; |
70 class ScrollView; | 71 class ScrollView; |
71 class Widget; | 72 class Widget; |
72 | 73 |
73 namespace internal { | 74 namespace internal { |
74 class PreEventDispatchHandler; | 75 class PreEventDispatchHandler; |
75 class PostEventDispatchHandler; | 76 class PostEventDispatchHandler; |
76 class RootView; | 77 class RootView; |
77 } | 78 } |
78 | 79 |
79 ///////////////////////////////////////////////////////////////////////////// | 80 ///////////////////////////////////////////////////////////////////////////// |
(...skipping 19 matching lines...) Expand all Loading... |
99 // | 100 // |
100 // Unless otherwise documented, views is not thread safe and should only be | 101 // Unless otherwise documented, views is not thread safe and should only be |
101 // accessed from the main thread. | 102 // accessed from the main thread. |
102 // | 103 // |
103 ///////////////////////////////////////////////////////////////////////////// | 104 ///////////////////////////////////////////////////////////////////////////// |
104 class VIEWS_EXPORT View : public ui::LayerDelegate, | 105 class VIEWS_EXPORT View : public ui::LayerDelegate, |
105 public ui::LayerOwner, | 106 public ui::LayerOwner, |
106 public ui::AcceleratorTarget, | 107 public ui::AcceleratorTarget, |
107 public ui::EventTarget { | 108 public ui::EventTarget { |
108 public: | 109 public: |
| 110 friend class NSViewBridge; |
109 typedef std::vector<View*> Views; | 111 typedef std::vector<View*> Views; |
110 | 112 |
111 // TODO(tdanderson,sadrul): Becomes obsolete with the refactoring of the | 113 // TODO(tdanderson,sadrul): Becomes obsolete with the refactoring of the |
112 // event targeting logic for views and windows. | 114 // event targeting logic for views and windows. |
113 // Specifies the source of the region used in a hit test. | 115 // Specifies the source of the region used in a hit test. |
114 // HIT_TEST_SOURCE_MOUSE indicates the hit test is being performed with a | 116 // HIT_TEST_SOURCE_MOUSE indicates the hit test is being performed with a |
115 // single point and HIT_TEST_SOURCE_TOUCH indicates the hit test is being | 117 // single point and HIT_TEST_SOURCE_TOUCH indicates the hit test is being |
116 // performed with a rect larger than a single point. This value can be used, | 118 // performed with a rect larger than a single point. This value can be used, |
117 // for example, to add extra padding or change the shape of the hit test mask. | 119 // for example, to add extra padding or change the shape of the hit test mask. |
118 enum HitTestSource { | 120 enum HitTestSource { |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 // 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 |
1560 // 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. |
1561 NativeViewAccessibility* native_view_accessibility_; | 1563 NativeViewAccessibility* native_view_accessibility_; |
1562 | 1564 |
1563 DISALLOW_COPY_AND_ASSIGN(View); | 1565 DISALLOW_COPY_AND_ASSIGN(View); |
1564 }; | 1566 }; |
1565 | 1567 |
1566 } // namespace views | 1568 } // namespace views |
1567 | 1569 |
1568 #endif // UI_VIEWS_VIEW_H_ | 1570 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |