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

Side by Side Diff: ui/gfx/canvas_android.cc

Issue 22835002: Supports gfx::FontList in gfx::Canvas and ui::ElideText family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/NOTREACHED/NOTIMPLEMENTED/ Created 7 years, 4 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) 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 #include "ui/gfx/canvas.h" 5 #include "ui/gfx/canvas.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gfx/font.h"
9 8
10 namespace gfx { 9 namespace gfx {
11 10
12 // static 11 // static
13 void Canvas::SizeStringInt(const base::string16& text, 12 void Canvas::SizeStringInt(const base::string16& text,
14 const gfx::Font& font, 13 const gfx::Font& font,
15 int* width, 14 int* width,
16 int* height, 15 int* height,
17 int line_height, 16 int line_height,
18 int flags) { 17 int flags) {
19 NOTIMPLEMENTED(); 18 NOTIMPLEMENTED();
20 } 19 }
21 20
22 void Canvas::DrawStringWithShadows(const base::string16& text, 21 // static
23 const gfx::Font& font, 22 int Canvas::GetStringWidth(const base::string16& text,
24 SkColor color, 23 const gfx::FontList& font_list) {
25 const gfx::Rect& text_bounds, 24 NOTIMPLEMENTED();
26 int line_height, 25 return 0;
27 int flags, 26 }
28 const ShadowValues& shadows) { 27
28 // static
29 int Canvas::GetStringWidth(const base::string16& text, const gfx::Font& font) {
30 NOTIMPLEMENTED();
31 return 0;
32 }
33
34 void Canvas::DrawStringWithHaloRect(const base::string16& text,
35 const FontList& font_list,
36 SkColor text_color,
37 SkColor halo_color_in,
38 const Rect& display_rect,
39 int flags) {
29 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
30 } 41 }
31 42
43 void Canvas::DrawStringWithShadowsRect(const base::string16& text,
44 const gfx::FontList& font_list,
45 SkColor color,
46 const gfx::Rect& text_bounds,
47 int line_height,
48 int flags,
49 const ShadowValues& shadows) {
50 NOTIMPLEMENTED();
51 }
52
32 } // namespace gfx 53 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698