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

Side by Side Diff: ui/gfx/canvas_paint.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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 | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_paint_gtk.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GFX_CANVAS_PAINT_H_ 5 #ifndef UI_GFX_CANVAS_PAINT_H_
6 #define UI_GFX_CANVAS_PAINT_H_ 6 #define UI_GFX_CANVAS_PAINT_H_
7 7
8 #include "ui/gfx/gfx_export.h" 8 #include "ui/gfx/gfx_export.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 class Canvas; 13 class Canvas;
14 class Rect; 14 class Rect;
15 15
16 class CanvasPaint { 16 class CanvasPaint {
17 public: 17 public:
18 // Creates a canvas that paints to |view| when it is destroyed. The canvas is 18 // Creates a canvas that paints to |view| when it is destroyed. The canvas is
19 // sized to the client area of |view|. 19 // sized to the client area of |view|.
20 UI_EXPORT static CanvasPaint* CreateCanvasPaint(gfx::NativeView view); 20 GFX_EXPORT static CanvasPaint* CreateCanvasPaint(gfx::NativeView view);
21 21
22 virtual ~CanvasPaint() {} 22 virtual ~CanvasPaint() {}
23 23
24 // Returns true if the canvas has an invalid rect that needs to be repainted. 24 // Returns true if the canvas has an invalid rect that needs to be repainted.
25 virtual bool IsValid() const = 0; 25 virtual bool IsValid() const = 0;
26 26
27 // Returns the rectangle that is invalid. 27 // Returns the rectangle that is invalid.
28 virtual gfx::Rect GetInvalidRect() const = 0; 28 virtual gfx::Rect GetInvalidRect() const = 0;
29 29
30 // Returns the underlying Canvas. 30 // Returns the underlying Canvas.
31 virtual Canvas* AsCanvas() = 0; 31 virtual Canvas* AsCanvas() = 0;
32 }; 32 };
33 33
34 } // namespace gfx 34 } // namespace gfx
35 35
36 #endif // UI_GFX_CANVAS_PAINT_H_ 36 #endif // UI_GFX_CANVAS_PAINT_H_
OLDNEW
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_paint_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698