Chromium Code Reviews| OLD | NEW |
|---|---|
| 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, |
|
msw
2013/08/13 17:39:22
Why are only a subset of Canvas functions stubbed
Yuki
2013/08/14 15:42:16
At a glance, Android version seems not using gfx::
| |
| 13 const gfx::FontList& font_list, | |
| 14 int* width, | |
| 15 int* height, | |
| 16 int line_height, | |
| 17 int flags) { | |
| 18 NOTIMPLEMENTED(); | |
| 19 } | |
| 20 | |
| 21 // static | |
| 22 void Canvas::SizeStringInt(const base::string16& text, | |
| 14 const gfx::Font& font, | 23 const gfx::Font& font, |
| 15 int* width, | 24 int* width, |
| 16 int* height, | 25 int* height, |
| 17 int line_height, | 26 int line_height, |
| 18 int flags) { | 27 int flags) { |
| 19 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
| 20 } | 29 } |
| 21 | 30 |
| 22 void Canvas::DrawStringWithShadows(const base::string16& text, | 31 void Canvas::DrawStringWithShadows(const base::string16& text, |
| 32 const gfx::FontList& font_list, | |
| 33 SkColor color, | |
| 34 const gfx::Rect& text_bounds, | |
| 35 int line_height, | |
| 36 int flags, | |
| 37 const ShadowValues& shadows) { | |
| 38 NOTIMPLEMENTED(); | |
| 39 } | |
| 40 | |
| 41 void Canvas::DrawStringWithShadows(const base::string16& text, | |
| 23 const gfx::Font& font, | 42 const gfx::Font& font, |
| 24 SkColor color, | 43 SkColor color, |
| 25 const gfx::Rect& text_bounds, | 44 const gfx::Rect& text_bounds, |
| 26 int line_height, | 45 int line_height, |
| 27 int flags, | 46 int flags, |
| 28 const ShadowValues& shadows) { | 47 const ShadowValues& shadows) { |
| 29 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
| 30 } | 49 } |
| 31 | 50 |
| 32 } // namespace gfx | 51 } // namespace gfx |
| OLD | NEW |