| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Overridden from View to implement paint scheduling. | 58 // Overridden from View to implement paint scheduling. |
| 59 virtual void SchedulePaint(const gfx::Rect& r, bool urgent); | 59 virtual void SchedulePaint(const gfx::Rect& r, bool urgent); |
| 60 | 60 |
| 61 // Convenience to schedule the whole view | 61 // Convenience to schedule the whole view |
| 62 virtual void SchedulePaint(); | 62 virtual void SchedulePaint(); |
| 63 | 63 |
| 64 // Convenience to schedule a paint given some ints | 64 // Convenience to schedule a paint given some ints |
| 65 virtual void SchedulePaint(int x, int y, int w, int h); | 65 virtual void SchedulePaint(int x, int y, int w, int h); |
| 66 | 66 |
| 67 // Paint this RootView and its child Views. | 67 // Paint this RootView and its child Views. |
| 68 virtual void ProcessPaint(ChromeCanvas* canvas); | 68 virtual void ProcessPaint(gfx::Canvas* canvas); |
| 69 | 69 |
| 70 // If the invalid rect is non-empty and there is a pending paint the RootView | 70 // If the invalid rect is non-empty and there is a pending paint the RootView |
| 71 // is painted immediately. This is internally invoked as the result of | 71 // is painted immediately. This is internally invoked as the result of |
| 72 // invoking SchedulePaint. | 72 // invoking SchedulePaint. |
| 73 virtual void PaintNow(); | 73 virtual void PaintNow(); |
| 74 | 74 |
| 75 // Whether or not this View needs repainting. If |urgent| is true, this method | 75 // Whether or not this View needs repainting. If |urgent| is true, this method |
| 76 // returns whether this root view needs to paint as soon as possible. | 76 // returns whether this root view needs to paint as soon as possible. |
| 77 virtual bool NeedsPainting(bool urgent); | 77 virtual bool NeedsPainting(bool urgent); |
| 78 | 78 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 #ifndef NDEBUG | 352 #ifndef NDEBUG |
| 353 // True if we're currently processing paint. | 353 // True if we're currently processing paint. |
| 354 bool is_processing_paint_; | 354 bool is_processing_paint_; |
| 355 #endif | 355 #endif |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 } // namespace views | 358 } // namespace views |
| 359 | 359 |
| 360 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 360 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |