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

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

Issue 8359029: ui/gfx: Convert Canvas::DrawFocusRect() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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_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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // |desired_characters_to_truncate_from_head| specifies the maximum number of 145 // |desired_characters_to_truncate_from_head| specifies the maximum number of
146 // characters that can be truncated. 146 // characters that can be truncated.
147 virtual void DrawFadeTruncatingString( 147 virtual void DrawFadeTruncatingString(
148 const string16& text, 148 const string16& text,
149 TruncateFadeMode truncate_mode, 149 TruncateFadeMode truncate_mode,
150 size_t desired_characters_to_truncate_from_head, 150 size_t desired_characters_to_truncate_from_head,
151 const gfx::Font& font, 151 const gfx::Font& font,
152 const SkColor& color, 152 const SkColor& color,
153 const gfx::Rect& display_rect); 153 const gfx::Rect& display_rect);
154 #endif 154 #endif
155 virtual void DrawFocusRect(int x, int y, int width, int height); 155 virtual void DrawFocusRect(const gfx::Rect& rect);
156 virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h); 156 virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h);
157 virtual void TileImageInt(const SkBitmap& bitmap, 157 virtual void TileImageInt(const SkBitmap& bitmap,
158 int src_x, int src_y, 158 int src_x, int src_y,
159 int dest_x, int dest_y, int w, int h); 159 int dest_x, int dest_y, int w, int h);
160 virtual gfx::NativeDrawingContext BeginPlatformPaint(); 160 virtual gfx::NativeDrawingContext BeginPlatformPaint();
161 virtual void EndPlatformPaint(); 161 virtual void EndPlatformPaint();
162 #if !defined(OS_MACOSX) 162 #if !defined(OS_MACOSX)
163 virtual void Transform(const ui::Transform& transform); 163 virtual void Transform(const ui::Transform& transform);
164 #endif 164 #endif
165 virtual ui::TextureID GetTextureID(); 165 virtual ui::TextureID GetTextureID();
(...skipping 20 matching lines...) Expand all
186 #endif 186 #endif
187 187
188 scoped_ptr<skia::PlatformCanvas> owned_canvas_; 188 scoped_ptr<skia::PlatformCanvas> owned_canvas_;
189 SkCanvas* canvas_; 189 SkCanvas* canvas_;
190 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); 190 DISALLOW_COPY_AND_ASSIGN(CanvasSkia);
191 }; 191 };
192 192
193 } // namespace gfx; 193 } // namespace gfx;
194 194
195 #endif // UI_GFX_CANVAS_SKIA_H_ 195 #endif // UI_GFX_CANVAS_SKIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698