| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual std::string GetClassName() const OVERRIDE; | 103 virtual std::string GetClassName() const OVERRIDE; |
| 104 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 104 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 105 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; | 105 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; |
| 106 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; | 106 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; |
| 107 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; | 107 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; |
| 108 virtual void OnMouseCaptureLost() OVERRIDE; | 108 virtual void OnMouseCaptureLost() OVERRIDE; |
| 109 virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE; | 109 virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE; |
| 110 virtual void OnMouseExited(const MouseEvent& event) OVERRIDE; | 110 virtual void OnMouseExited(const MouseEvent& event) OVERRIDE; |
| 111 virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE; | 111 virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE; |
| 112 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; | 112 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; |
| 113 virtual bool OnGestureEvent(const GestureEvent& event) OVERRIDE; |
| 113 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; | 114 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; |
| 114 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 115 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 115 | 116 |
| 116 protected: | 117 protected: |
| 117 // Overridden from View: | 118 // Overridden from View: |
| 118 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 119 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
| 119 View* child) OVERRIDE; | 120 View* child) OVERRIDE; |
| 120 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 121 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 121 virtual void CalculateOffsetToAncestorWithLayer( | 122 virtual void CalculateOffsetToAncestorWithLayer( |
| 122 gfx::Point* offset, | 123 gfx::Point* offset, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Tracks drag state for a view. | 199 // Tracks drag state for a view. |
| 199 View::DragInfo drag_info; | 200 View::DragInfo drag_info; |
| 200 | 201 |
| 201 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 202 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace internal | 205 } // namespace internal |
| 205 } // namespace views | 206 } // namespace views |
| 206 | 207 |
| 207 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 208 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |