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

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

Issue 9332006: ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: put back the Peter's nits Created 8 years, 10 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_skia.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) 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_SKIA_H_ 5 #ifndef UI_GFX_CANVAS_SKIA_H_
6 #define UI_GFX_CANVAS_SKIA_H_ 6 #define UI_GFX_CANVAS_SKIA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // characters that can be truncated. 150 // characters that can be truncated.
151 virtual void DrawFadeTruncatingString( 151 virtual void DrawFadeTruncatingString(
152 const string16& text, 152 const string16& text,
153 TruncateFadeMode truncate_mode, 153 TruncateFadeMode truncate_mode,
154 size_t desired_characters_to_truncate_from_head, 154 size_t desired_characters_to_truncate_from_head,
155 const gfx::Font& font, 155 const gfx::Font& font,
156 const SkColor& color, 156 const SkColor& color,
157 const gfx::Rect& display_rect); 157 const gfx::Rect& display_rect);
158 #endif 158 #endif
159 virtual void DrawFocusRect(const gfx::Rect& rect) OVERRIDE; 159 virtual void DrawFocusRect(const gfx::Rect& rect) OVERRIDE;
160 virtual void TileImageInt(const SkBitmap& bitmap, 160 virtual void TileImage(const SkBitmap& bitmap,
161 int x, int y, int w, int h) OVERRIDE; 161 const gfx::Rect& rect) OVERRIDE;
162 virtual void TileImageInt(const SkBitmap& bitmap, 162 virtual void TileImageInt(const SkBitmap& bitmap,
163 int src_x, int src_y, 163 int src_x, int src_y,
164 int dest_x, int dest_y, int w, int h) OVERRIDE; 164 int dest_x, int dest_y, int w, int h) OVERRIDE;
165 virtual gfx::NativeDrawingContext BeginPlatformPaint() OVERRIDE; 165 virtual gfx::NativeDrawingContext BeginPlatformPaint() OVERRIDE;
166 virtual void EndPlatformPaint() OVERRIDE; 166 virtual void EndPlatformPaint() OVERRIDE;
167 virtual void Transform(const ui::Transform& transform) OVERRIDE; 167 virtual void Transform(const ui::Transform& transform) OVERRIDE;
168 virtual CanvasSkia* AsCanvasSkia() OVERRIDE; 168 virtual CanvasSkia* AsCanvasSkia() OVERRIDE;
169 virtual const CanvasSkia* AsCanvasSkia() const OVERRIDE; 169 virtual const CanvasSkia* AsCanvasSkia() const OVERRIDE;
170 virtual SkCanvas* GetSkCanvas() OVERRIDE; 170 virtual SkCanvas* GetSkCanvas() OVERRIDE;
171 virtual const SkCanvas* GetSkCanvas() const OVERRIDE; 171 virtual const SkCanvas* GetSkCanvas() const OVERRIDE;
(...skipping 18 matching lines...) Expand all
190 190
191 scoped_ptr<skia::PlatformCanvas> owned_canvas_; 191 scoped_ptr<skia::PlatformCanvas> owned_canvas_;
192 SkCanvas* canvas_; 192 SkCanvas* canvas_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); 194 DISALLOW_COPY_AND_ASSIGN(CanvasSkia);
195 }; 195 };
196 196
197 } // namespace gfx 197 } // namespace gfx
198 198
199 #endif // UI_GFX_CANVAS_SKIA_H_ 199 #endif // UI_GFX_CANVAS_SKIA_H_
OLDNEW
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698