| Index: ui/gfx/render_text_linux.cc
|
| diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..2a564eee42895dce657108c0b00b19d809f1001c
|
| --- /dev/null
|
| +++ b/ui/gfx/render_text_linux.cc
|
| @@ -0,0 +1,68 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/gfx/render_text_linux.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +RenderTextLinux::RenderTextLinux()
|
| + : RenderText() {
|
| +}
|
| +
|
| +RenderTextLinux::RenderTextLinux(const string16& text,
|
| + const gfx::Font& font,
|
| + const SkColor& color,
|
| + const gfx::Rect display_rect,
|
| + int flags)
|
| + : RenderText(text, font, color, display_rect, flags) {
|
| +}
|
| +
|
| +void RenderTextLinux::Draw(cairo_t* drawing_context) const {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +size_t RenderTextLinux::FindCursorPosition(const gfx::Point& point) const {
|
| + NOTIMPLEMENTED();
|
| + return 0;
|
| +}
|
| +
|
| +std::vector<gfx::Rect> RenderTextLinux::GetSubstringBounds(
|
| + const ui::Range& range) const {
|
| + NOTIMPLEMENTED();
|
| + return std::vector<gfx::Rect>();
|
| +}
|
| +
|
| +size_t RenderTextLinux::GetLeftCursorPosition(size_t position,
|
| + bool move_by_word) const {
|
| + NOTIMPLEMENTED();
|
| + return 0;
|
| +}
|
| +
|
| +size_t RenderTextLinux::GetRightCursorPosition(size_t position,
|
| + 1 bool move_by_word) const {
|
| + NOTIMPLEMENTED();
|
| + return 0;
|
| +}
|
| +
|
| +gfx::Rect RenderTextLinux::GetCursorBounds(size_t position,
|
| + bool insert_mode) const {
|
| + NOTIMPLEMENTED();
|
| + return gfx::Rect();
|
| +}
|
| +
|
| +RenderText* RenderText::CreateRenderText() {
|
| + return new RenderTextLinux;
|
| +}
|
| +
|
| +RenderText* RenderText::CreateRenderText(const string16& text,
|
| + const gfx::Font& font,
|
| + const SkColor& color,
|
| + const gfx::Rect display_rect,
|
| + int flags) {
|
| + return new RenderTextLinux(text, font, color, display_rect, flags);
|
| +}
|
| +
|
| +} // namespace gfx
|
|
|