| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE; |
| 112 | 112 |
| 113 protected: | 113 protected: |
| 114 // Overridden from View: | 114 // Overridden from View: |
| 115 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 115 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
| 116 View* child) OVERRIDE; | 116 View* child) 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 | 121 |
| 121 private: | 122 private: |
| 122 friend class View; | 123 friend class View; |
| 123 friend class Widget; | 124 friend class Widget; |
| 124 | 125 |
| 125 // Input --------------------------------------------------------------------- | 126 // Input --------------------------------------------------------------------- |
| 126 | 127 |
| 127 // Update the cursor given a mouse event. This is called by non mouse_move | 128 // Update the cursor given a mouse event. This is called by non mouse_move |
| 128 // event handlers to honor the cursor desired by views located under the | 129 // event handlers to honor the cursor desired by views located under the |
| 129 // cursor during drag operations. The location of the mouse should be in the | 130 // cursor during drag operations. The location of the mouse should be in the |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Tracks drag state for a view. | 203 // Tracks drag state for a view. |
| 203 View::DragInfo drag_info_; | 204 View::DragInfo drag_info_; |
| 204 | 205 |
| 205 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 206 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace internal | 209 } // namespace internal |
| 209 } // namespace views | 210 } // namespace views |
| 210 | 211 |
| 211 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 212 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |