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_WIDGET_ROOT_VIEW_H_ | 5 #ifndef UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 101 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
102 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 102 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
103 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 103 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
104 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 104 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
105 virtual void OnMouseCaptureLost() OVERRIDE; | 105 virtual void OnMouseCaptureLost() OVERRIDE; |
106 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 106 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
107 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 107 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
108 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; | 108 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
109 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; | 109 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; |
110 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 110 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
111 virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE; | 111 virtual void UpdateParentLayer() OVERRIDE; |
112 | 112 |
113 protected: | 113 protected: |
114 // Overridden from View: | 114 // Overridden from View: |
115 virtual void ViewHierarchyChanged( | 115 virtual void ViewHierarchyChanged( |
116 const ViewHierarchyChangedDetails& details) OVERRIDE; | 116 const ViewHierarchyChangedDetails& details) OVERRIDE; |
117 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 117 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
118 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( | 118 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( |
119 ui::Layer** layer_parent) OVERRIDE; | 119 ui::Layer** layer_parent) OVERRIDE; |
120 virtual View::DragInfo* GetDragInfo() OVERRIDE; | 120 virtual View::DragInfo* GetDragInfo() OVERRIDE; |
121 | 121 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Tracks drag state for a view. | 211 // Tracks drag state for a view. |
212 View::DragInfo drag_info_; | 212 View::DragInfo drag_info_; |
213 | 213 |
214 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 214 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
215 }; | 215 }; |
216 | 216 |
217 } // namespace internal | 217 } // namespace internal |
218 } // namespace views | 218 } // namespace views |
219 | 219 |
220 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 220 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |