| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Invoked by the Widget to discover what rectangle should be painted. | 74 // Invoked by the Widget to discover what rectangle should be painted. |
| 75 const gfx::Rect& GetScheduledPaintRect(); | 75 const gfx::Rect& GetScheduledPaintRect(); |
| 76 | 76 |
| 77 // Returns the region scheduled to paint clipped to the RootViews bounds. | 77 // Returns the region scheduled to paint clipped to the RootViews bounds. |
| 78 gfx::Rect GetScheduledPaintRectConstrainedToSize(); | 78 gfx::Rect GetScheduledPaintRectConstrainedToSize(); |
| 79 | 79 |
| 80 // Tree functions | 80 // Tree functions |
| 81 | 81 |
| 82 // Get the Widget that hosts this View. | 82 // Get the Widget that hosts this View. |
| 83 virtual Widget* GetWidget() const; | 83 virtual const Widget* GetWidget() const; |
| 84 virtual Widget* GetWidget(); |
| 84 | 85 |
| 85 // Public API for broadcasting theme change notifications to this View | 86 // Public API for broadcasting theme change notifications to this View |
| 86 // hierarchy. | 87 // hierarchy. |
| 87 void NotifyThemeChanged(); | 88 void NotifyThemeChanged(); |
| 88 | 89 |
| 89 // Public API for broadcasting locale change notifications to this View | 90 // Public API for broadcasting locale change notifications to this View |
| 90 // hierarchy. | 91 // hierarchy. |
| 91 void NotifyLocaleChanged(); | 92 void NotifyLocaleChanged(); |
| 92 | 93 |
| 93 // The following event methods are overridden to propagate event to the | 94 // The following event methods are overridden to propagate event to the |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 351 |
| 351 #ifndef NDEBUG | 352 #ifndef NDEBUG |
| 352 // True if we're currently processing paint. | 353 // True if we're currently processing paint. |
| 353 bool is_processing_paint_; | 354 bool is_processing_paint_; |
| 354 #endif | 355 #endif |
| 355 DISALLOW_COPY_AND_ASSIGN(RootView); | 356 DISALLOW_COPY_AND_ASSIGN(RootView); |
| 356 }; | 357 }; |
| 357 } // namespace views | 358 } // namespace views |
| 358 | 359 |
| 359 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 360 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |