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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual FocusSearch* GetFocusSearch() OVERRIDE; | 95 virtual FocusSearch* GetFocusSearch() OVERRIDE; |
96 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE; | 96 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE; |
97 virtual View* GetFocusTraversableParentView() OVERRIDE; | 97 virtual View* GetFocusTraversableParentView() OVERRIDE; |
98 | 98 |
99 // Overridden from View: | 99 // Overridden from View: |
100 virtual const Widget* GetWidget() const OVERRIDE; | 100 virtual const Widget* GetWidget() const OVERRIDE; |
101 virtual Widget* GetWidget() OVERRIDE; | 101 virtual Widget* GetWidget() OVERRIDE; |
102 virtual bool IsVisibleInRootView() const OVERRIDE; | 102 virtual bool IsVisibleInRootView() const OVERRIDE; |
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 void SchedulePaintInternal(const gfx::Rect& rect) OVERRIDE; | |
106 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; | 105 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; |
107 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; | 106 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; |
108 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; | 107 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; |
109 virtual void OnMouseCaptureLost() OVERRIDE; | 108 virtual void OnMouseCaptureLost() OVERRIDE; |
110 virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE; | 109 virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE; |
111 virtual void OnMouseExited(const MouseEvent& event) OVERRIDE; | 110 virtual void OnMouseExited(const MouseEvent& event) OVERRIDE; |
112 virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE; | 111 virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE; |
113 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; | 112 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; |
114 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; | 113 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; |
115 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 114 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
116 | 115 |
117 protected: | 116 protected: |
118 // Overridden from View: | 117 // Overridden from View: |
119 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 118 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
120 View* child) OVERRIDE; | 119 View* child) OVERRIDE; |
121 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 120 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
122 virtual const ui::Compositor* GetCompositor() const OVERRIDE; | 121 virtual const ui::Compositor* GetCompositor() const OVERRIDE; |
123 virtual ui::Compositor* GetCompositor() OVERRIDE; | 122 virtual ui::Compositor* GetCompositor() OVERRIDE; |
124 virtual void MarkLayerDirty() OVERRIDE; | 123 virtual void CalculateOffsetToAncestorWithLayer( |
125 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 124 gfx::Point* offset, |
126 View** ancestor) OVERRIDE; | 125 ui::Layer** layer_parent) OVERRIDE; |
127 | 126 |
128 private: | 127 private: |
129 friend class View; | 128 friend class View; |
130 friend class Widget; | 129 friend class Widget; |
131 | 130 |
132 // Required so the GestureManager can call the Process* entry points | 131 // Required so the GestureManager can call the Process* entry points |
133 // with synthetic events as necessary. | 132 // with synthetic events as necessary. |
134 friend class GestureManager; | 133 friend class GestureManager; |
135 | 134 |
136 // Input --------------------------------------------------------------------- | 135 // Input --------------------------------------------------------------------- |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Tracks drag state for a view. | 200 // Tracks drag state for a view. |
202 View::DragInfo drag_info; | 201 View::DragInfo drag_info; |
203 | 202 |
204 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 203 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
205 }; | 204 }; |
206 | 205 |
207 } // namespace internal | 206 } // namespace internal |
208 } // namespace views | 207 } // namespace views |
209 | 208 |
210 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 209 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |