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

Unified Diff: ui/gfx/render_text.h

Issue 779793006: MacViews: Use RenderTextHarfBuzz only for Textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to CreateInstanceOfSameType Created 6 years 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
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 9dc353ade39964403541e956d9a602c1d338f3ff..8153a1ec0425cabaa28e021baafa7712f1750a0f 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -191,6 +191,10 @@ class GFX_EXPORT RenderText {
// Creates a platform-specific or cross-platform RenderText instance.
static RenderText* CreateInstance();
+ static RenderText* CreateInstanceForEditing();
+
+ // Creates another instance of the same concrete class.
+ virtual scoped_ptr<RenderText> CreateInstanceOfSameType() const = 0;
const base::string16& text() const { return text_; }
void SetText(const base::string16& text);
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698