Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1279)

Side by Side Diff: ui/views/view.h

Issue 231883003: [stash] 20140404-crbug-312961-mac-views-bridge-C-wholegrid Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/metrics_mac.mm ('k') | ui/views/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 class Background; 60 class Background;
61 class Border; 61 class Border;
62 class ContextMenuController; 62 class ContextMenuController;
63 class DragController; 63 class DragController;
64 class FocusManager; 64 class FocusManager;
65 class FocusTraversable; 65 class FocusTraversable;
66 class InputMethod; 66 class InputMethod;
67 class LayoutManager; 67 class LayoutManager;
68 class NativeViewAccessibility; 68 class NativeViewAccessibility;
69 class NSViewBridge;
69 class ScrollView; 70 class ScrollView;
70 class Widget; 71 class Widget;
71 72
72 namespace internal { 73 namespace internal {
73 class PreEventDispatchHandler; 74 class PreEventDispatchHandler;
74 class PostEventDispatchHandler; 75 class PostEventDispatchHandler;
75 class RootView; 76 class RootView;
76 } 77 }
77 78
78 ///////////////////////////////////////////////////////////////////////////// 79 /////////////////////////////////////////////////////////////////////////////
(...skipping 19 matching lines...) Expand all
98 // 99 //
99 // Unless otherwise documented, views is not thread safe and should only be 100 // Unless otherwise documented, views is not thread safe and should only be
100 // accessed from the main thread. 101 // accessed from the main thread.
101 // 102 //
102 ///////////////////////////////////////////////////////////////////////////// 103 /////////////////////////////////////////////////////////////////////////////
103 class VIEWS_EXPORT View : public ui::LayerDelegate, 104 class VIEWS_EXPORT View : public ui::LayerDelegate,
104 public ui::LayerOwner, 105 public ui::LayerOwner,
105 public ui::AcceleratorTarget, 106 public ui::AcceleratorTarget,
106 public ui::EventTarget { 107 public ui::EventTarget {
107 public: 108 public:
109 friend class NSViewBridge;
108 typedef std::vector<View*> Views; 110 typedef std::vector<View*> Views;
109 111
110 // TODO(tdanderson,sadrul): Becomes obsolete with the refactoring of the 112 // TODO(tdanderson,sadrul): Becomes obsolete with the refactoring of the
111 // event targeting logic for views and windows. 113 // event targeting logic for views and windows.
112 // Specifies the source of the region used in a hit test. 114 // Specifies the source of the region used in a hit test.
113 // HIT_TEST_SOURCE_MOUSE indicates the hit test is being performed with a 115 // HIT_TEST_SOURCE_MOUSE indicates the hit test is being performed with a
114 // single point and HIT_TEST_SOURCE_TOUCH indicates the hit test is being 116 // single point and HIT_TEST_SOURCE_TOUCH indicates the hit test is being
115 // performed with a rect larger than a single point. This value can be used, 117 // performed with a rect larger than a single point. This value can be used,
116 // for example, to add extra padding or change the shape of the hit test mask. 118 // for example, to add extra padding or change the shape of the hit test mask.
117 enum HitTestSource { 119 enum HitTestSource {
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 // Belongs to this view, but it's reference-counted on some platforms 1554 // Belongs to this view, but it's reference-counted on some platforms
1553 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1555 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1554 NativeViewAccessibility* native_view_accessibility_; 1556 NativeViewAccessibility* native_view_accessibility_;
1555 1557
1556 DISALLOW_COPY_AND_ASSIGN(View); 1558 DISALLOW_COPY_AND_ASSIGN(View);
1557 }; 1559 };
1558 1560
1559 } // namespace views 1561 } // namespace views
1560 1562
1561 #endif // UI_VIEWS_VIEW_H_ 1563 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/metrics_mac.mm ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698