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

Side by Side Diff: ui/gfx/canvas_paint_win.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_paint_mac.h ('k') | ui/gfx/codec/jpeg_codec.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIN_H_ 5 #ifndef UI_GFX_CANVAS_PAINT_WIN_H_
6 #define UI_GFX_CANVAS_PAINT_WIN_H_ 6 #define UI_GFX_CANVAS_PAINT_WIN_H_
7 7
8 #include "skia/ext/platform_canvas.h" 8 #include "skia/ext/platform_canvas.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 15 matching lines...) Expand all
26 // PAINTSTRUCT ps; 26 // PAINTSTRUCT ps;
27 // HDC hdc = BeginPaint(hwnd, &ps); 27 // HDC hdc = BeginPaint(hwnd, &ps);
28 // gfx::CanvasSkiaPaint canvas(hwnd, hdc, ps); 28 // gfx::CanvasSkiaPaint canvas(hwnd, hdc, ps);
29 // if (!canvas.isEmpty()) { 29 // if (!canvas.isEmpty()) {
30 // ... paint to the canvas ... 30 // ... paint to the canvas ...
31 // } 31 // }
32 // EndPaint(hwnd, &ps); 32 // EndPaint(hwnd, &ps);
33 // return 0; 33 // return 0;
34 // } 34 // }
35 // Note: The created context is always inialized to (0, 0, 0, 0). 35 // Note: The created context is always inialized to (0, 0, 0, 0).
36 class UI_EXPORT CanvasSkiaPaint : public Canvas { 36 class GFX_EXPORT CanvasSkiaPaint : public Canvas {
37 public: 37 public:
38 // This constructor assumes the canvas is opaque. 38 // This constructor assumes the canvas is opaque.
39 CanvasSkiaPaint(HWND hwnd, HDC dc, const PAINTSTRUCT& ps); 39 CanvasSkiaPaint(HWND hwnd, HDC dc, const PAINTSTRUCT& ps);
40 virtual ~CanvasSkiaPaint(); 40 virtual ~CanvasSkiaPaint();
41 41
42 // Creates a CanvasSkiaPaint for the specified region that paints to the 42 // Creates a CanvasSkiaPaint for the specified region that paints to the
43 // specified dc. 43 // specified dc.
44 CanvasSkiaPaint(HDC dc, bool opaque, int x, int y, int w, int h); 44 CanvasSkiaPaint(HDC dc, bool opaque, int x, int y, int w, int h);
45 45
46 // Returns the rectangle that is invalid. 46 // Returns the rectangle that is invalid.
(...skipping 20 matching lines...) Expand all
67 HDC paint_dc_; 67 HDC paint_dc_;
68 PAINTSTRUCT ps_; 68 PAINTSTRUCT ps_;
69 69
70 // Disallow copy and assign. 70 // Disallow copy and assign.
71 DISALLOW_COPY_AND_ASSIGN(CanvasSkiaPaint); 71 DISALLOW_COPY_AND_ASSIGN(CanvasSkiaPaint);
72 }; 72 };
73 73
74 } // namespace gfx 74 } // namespace gfx
75 75
76 #endif // UI_GFX_CANVAS_PAINT_WIN_H_ 76 #endif // UI_GFX_CANVAS_PAINT_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/canvas_paint_mac.h ('k') | ui/gfx/codec/jpeg_codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698