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

Unified Diff: ui/gfx/render_text_linux.cc

Issue 7265011: RenderText API Outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some placeholder functionality on Windows. Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698