OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/render_text_linux.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace gfx { |
| 10 |
| 11 RenderTextLinux::RenderTextLinux() |
| 12 : RenderText() { |
| 13 } |
| 14 |
| 15 RenderTextLinux::RenderTextLinux(const string16& text, |
| 16 const gfx::Font& font, |
| 17 const SkColor& color, |
| 18 const gfx::Rect display_rect, |
| 19 int flags) |
| 20 : RenderText(text, font, color, display_rect, flags) { |
| 21 } |
| 22 |
| 23 void RenderTextLinux::Draw(cairo_t* drawing_context) const { |
| 24 NOTIMPLEMENTED(); |
| 25 } |
| 26 |
| 27 size_t RenderTextLinux::FindCursorPosition(const gfx::Point& point) const { |
| 28 NOTIMPLEMENTED(); |
| 29 return 0; |
| 30 } |
| 31 |
| 32 std::vector<gfx::Rect> RenderTextLinux::GetSubstringBounds( |
| 33 const ui::Range& range) const { |
| 34 NOTIMPLEMENTED(); |
| 35 return std::vector<gfx::Rect>(); |
| 36 } |
| 37 |
| 38 size_t RenderTextLinux::GetLeftCursorPosition(size_t position, |
| 39 bool move_by_word) const { |
| 40 NOTIMPLEMENTED(); |
| 41 return 0; |
| 42 } |
| 43 |
| 44 size_t RenderTextLinux::GetRightCursorPosition(size_t position, |
| 45 1 bool move_by_word) const { |
| 46 NOTIMPLEMENTED(); |
| 47 return 0; |
| 48 } |
| 49 |
| 50 gfx::Rect RenderTextLinux::GetCursorBounds(size_t position, |
| 51 bool insert_mode) const { |
| 52 NOTIMPLEMENTED(); |
| 53 return gfx::Rect(); |
| 54 } |
| 55 |
| 56 RenderText* RenderText::CreateRenderText() { |
| 57 return new RenderTextLinux; |
| 58 } |
| 59 |
| 60 RenderText* RenderText::CreateRenderText(const string16& text, |
| 61 const gfx::Font& font, |
| 62 const SkColor& color, |
| 63 const gfx::Rect display_rect, |
| 64 int flags) { |
| 65 return new RenderTextLinux(text, font, color, display_rect, flags); |
| 66 } |
| 67 |
| 68 } // namespace gfx |
OLD | NEW |