Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: views/widget/root_view.h

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/view_win.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « views/view_win.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698