OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_ROOT_VIEW_H_ | 5 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_ |
6 #define VIEWS_WIDGET_ROOT_VIEW_H_ | 6 #define VIEWS_WIDGET_ROOT_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Overridden from View: | 120 // Overridden from View: |
121 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 121 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
122 View* child) OVERRIDE; | 122 View* child) OVERRIDE; |
123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
124 virtual const ui::Compositor* GetCompositor() const OVERRIDE; | 124 virtual const ui::Compositor* GetCompositor() const OVERRIDE; |
125 virtual ui::Compositor* GetCompositor() OVERRIDE; | 125 virtual ui::Compositor* GetCompositor() OVERRIDE; |
126 virtual void MarkLayerDirty() OVERRIDE; | 126 virtual void MarkLayerDirty() OVERRIDE; |
127 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 127 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, |
128 View** ancestor) OVERRIDE; | 128 View** ancestor) OVERRIDE; |
129 | 129 |
130 View* touch_pressed_handler() const { return touch_pressed_handler_; } | |
131 | |
132 private: | 130 private: |
133 friend class View; | 131 friend class View; |
134 friend class Widget; | 132 friend class Widget; |
135 | 133 |
136 // Required so the GestureManager can call the Process* entry points | 134 // Required so the GestureManager can call the Process* entry points |
137 // with synthetic events as necessary. | 135 // with synthetic events as necessary. |
138 friend class GestureManager; | 136 friend class GestureManager; |
139 | 137 |
140 // Input --------------------------------------------------------------------- | 138 // Input --------------------------------------------------------------------- |
141 | 139 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // Tracks drag state for a view. | 203 // Tracks drag state for a view. |
206 View::DragInfo drag_info; | 204 View::DragInfo drag_info; |
207 | 205 |
208 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 206 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
209 }; | 207 }; |
210 | 208 |
211 } // namespace internal | 209 } // namespace internal |
212 } // namespace views | 210 } // namespace views |
213 | 211 |
214 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 212 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |