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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual Widget* GetWidget() OVERRIDE; | 96 virtual Widget* GetWidget() OVERRIDE; |
97 virtual bool IsDrawn() const OVERRIDE; | 97 virtual bool IsDrawn() const OVERRIDE; |
98 virtual std::string GetClassName() const OVERRIDE; | 98 virtual std::string GetClassName() const OVERRIDE; |
99 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 99 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
100 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 100 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
101 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 101 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
102 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 102 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
103 virtual void OnMouseCaptureLost() OVERRIDE; | 103 virtual void OnMouseCaptureLost() OVERRIDE; |
104 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 104 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
105 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 105 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
106 virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE; | 106 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
107 virtual bool OnScrollEvent(const ScrollEvent& event) OVERRIDE; | 107 virtual bool OnScrollEvent(const ui::ScrollEvent& event) OVERRIDE; |
108 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; | 108 virtual ui::TouchStatus OnTouchEvent(const ui::TouchEvent& event) OVERRIDE; |
109 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE; | 109 virtual ui::GestureStatus OnGestureEvent( |
| 110 const ui::GestureEvent& event) OVERRIDE; |
110 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; | 111 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; |
111 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 112 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
112 virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE; | 113 virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE; |
113 | 114 |
114 protected: | 115 protected: |
115 // Overridden from View: | 116 // Overridden from View: |
116 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 117 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
117 View* child) OVERRIDE; | 118 View* child) OVERRIDE; |
118 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 119 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
119 virtual void CalculateOffsetToAncestorWithLayer( | 120 virtual void CalculateOffsetToAncestorWithLayer( |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Tracks drag state for a view. | 198 // Tracks drag state for a view. |
198 View::DragInfo drag_info_; | 199 View::DragInfo drag_info_; |
199 | 200 |
200 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 201 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
201 }; | 202 }; |
202 | 203 |
203 } // namespace internal | 204 } // namespace internal |
204 } // namespace views | 205 } // namespace views |
205 | 206 |
206 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 207 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |