| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // hierarchy. | 166 // hierarchy. |
| 167 void NotifyLocaleChanged(); | 167 void NotifyLocaleChanged(); |
| 168 | 168 |
| 169 // Overridden from FocusTraversable: | 169 // Overridden from FocusTraversable: |
| 170 virtual FocusSearch* GetFocusSearch(); | 170 virtual FocusSearch* GetFocusSearch(); |
| 171 virtual FocusTraversable* GetFocusTraversableParent(); | 171 virtual FocusTraversable* GetFocusTraversableParent(); |
| 172 virtual View* GetFocusTraversableParentView(); | 172 virtual View* GetFocusTraversableParentView(); |
| 173 | 173 |
| 174 // Overridden from View: | 174 // Overridden from View: |
| 175 virtual void SchedulePaintInRect(const gfx::Rect& r, bool urgent); | 175 virtual void SchedulePaintInRect(const gfx::Rect& r, bool urgent); |
| 176 virtual void ProcessPaint(gfx::Canvas* canvas); | 176 virtual void Paint(gfx::Canvas* canvas); |
| 177 virtual void PaintNow(); | 177 virtual void PaintNow(); |
| 178 virtual const Widget* GetWidget() const; | 178 virtual const Widget* GetWidget() const; |
| 179 virtual Widget* GetWidget(); | 179 virtual Widget* GetWidget(); |
| 180 virtual bool OnMousePressed(const MouseEvent& e); | 180 virtual bool OnMousePressed(const MouseEvent& e); |
| 181 virtual bool OnMouseDragged(const MouseEvent& e); | 181 virtual bool OnMouseDragged(const MouseEvent& e); |
| 182 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); | 182 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); |
| 183 virtual void OnMouseMoved(const MouseEvent& e); | 183 virtual void OnMouseMoved(const MouseEvent& e); |
| 184 virtual void SetMouseHandler(View* new_mouse_handler); | 184 virtual void SetMouseHandler(View* new_mouse_handler); |
| 185 #if defined(TOUCH_UI) | 185 #if defined(TOUCH_UI) |
| 186 virtual TouchStatus OnTouchEvent(const TouchEvent& e); | 186 virtual TouchStatus OnTouchEvent(const TouchEvent& e); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the | 339 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the |
| 340 // view the drag started from. | 340 // view the drag started from. |
| 341 View* drag_view_; | 341 View* drag_view_; |
| 342 | 342 |
| 343 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 343 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
| 344 }; | 344 }; |
| 345 } // namespace views | 345 } // namespace views |
| 346 | 346 |
| 347 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 347 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |