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

Unified Diff: ui/views/controls/textfield/native_textfield_wrapper.h

Issue 11535014: Replace StyleRange with BreakList; update RenderText, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 11 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_wrapper.h
diff --git a/ui/views/controls/textfield/native_textfield_wrapper.h b/ui/views/controls/textfield/native_textfield_wrapper.h
index 53e4c6c94ef679f5c33978a07668fab8965660fb..69dfa6e20ea19cdeecf5d2c048f6cc139e2d0c88 100644
--- a/ui/views/controls/textfield/native_textfield_wrapper.h
+++ b/ui/views/controls/textfield/native_textfield_wrapper.h
@@ -8,12 +8,12 @@
#include "base/string16.h"
#include "base/i18n/rtl.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/text_constants.h"
#include "ui/views/views_export.h"
namespace gfx {
class Insets;
class SelectionModel;
-struct StyleRange;
} // namespace gfx
namespace ui {
@@ -148,12 +148,15 @@ class VIEWS_EXPORT NativeTextfieldWrapper {
// support text input.
virtual ui::TextInputClient* GetTextInputClient() = 0;
- // Applies the |style| to the text specified by its range.
- // See |Textfield::ApplyStyleRange| for detail.
- virtual void ApplyStyleRange(const gfx::StyleRange& style) = 0;
+ // Set the text colors; see the corresponding Textfield functions for details.
+ virtual void SetColor(SkColor value) = 0;
+ virtual void ApplyColor(SkColor value, const ui::Range& range) = 0;
- // Applies the default style to the textfield.
- virtual void ApplyDefaultStyle() = 0;
+ // Set the text styles; see the corresponding Textfield functions for details.
+ virtual void SetStyle(gfx::TextStyle style, bool value) = 0;
+ virtual void ApplyStyle(gfx::TextStyle style,
+ bool value,
+ const ui::Range& range) = 0;
// Clears Edit history.
virtual void ClearEditHistory() = 0;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698