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

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: 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') | ui/gfx/render_text.cc » ('J')
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..d52787d2e8b6d445917e19df470814f463c61840 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> NewInstance() const = 0;
msw 2014/12/08 19:27:50 nit: CreateInstanceOfSameType?
Andre 2014/12/08 19:51:32 I thought about calling it Clone(), but it doesn't
msw 2014/12/08 19:57:52 Sure, I slightly prefer CreateInstanceForClone.
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') | ui/gfx/render_text.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698