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

Side by Side Diff: ui/views/controls/textfield/native_textfield_views.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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/link.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/events/event_constants.h" 10 #include "ui/base/events/event_constants.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; 123 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE;
124 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; 124 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE;
125 virtual size_t GetCursorPosition() const OVERRIDE; 125 virtual size_t GetCursorPosition() const OVERRIDE;
126 virtual bool GetCursorEnabled() const OVERRIDE; 126 virtual bool GetCursorEnabled() const OVERRIDE;
127 virtual void SetCursorEnabled(bool enabled) OVERRIDE; 127 virtual void SetCursorEnabled(bool enabled) OVERRIDE;
128 virtual bool HandleKeyPressed(const ui::KeyEvent& e) OVERRIDE; 128 virtual bool HandleKeyPressed(const ui::KeyEvent& e) OVERRIDE;
129 virtual bool HandleKeyReleased(const ui::KeyEvent& e) OVERRIDE; 129 virtual bool HandleKeyReleased(const ui::KeyEvent& e) OVERRIDE;
130 virtual void HandleFocus() OVERRIDE; 130 virtual void HandleFocus() OVERRIDE;
131 virtual void HandleBlur() OVERRIDE; 131 virtual void HandleBlur() OVERRIDE;
132 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; 132 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
133 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; 133 virtual void SetColor(SkColor value) OVERRIDE;
134 virtual void ApplyDefaultStyle() OVERRIDE; 134 virtual void ApplyColor(SkColor value, const ui::Range& range) OVERRIDE;
135 virtual void SetStyle(gfx::TextStyle style, bool value) OVERRIDE;
136 virtual void ApplyStyle(gfx::TextStyle style,
137 bool value,
138 const ui::Range& range) OVERRIDE;
135 virtual void ClearEditHistory() OVERRIDE; 139 virtual void ClearEditHistory() OVERRIDE;
136 virtual int GetFontHeight() OVERRIDE; 140 virtual int GetFontHeight() OVERRIDE;
137 virtual int GetTextfieldBaseline() const OVERRIDE; 141 virtual int GetTextfieldBaseline() const OVERRIDE;
138 virtual void ExecuteTextCommand(int command_id) OVERRIDE; 142 virtual void ExecuteTextCommand(int command_id) OVERRIDE;
139 143
140 // ui::SimpleMenuModel::Delegate overrides 144 // ui::SimpleMenuModel::Delegate overrides
141 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 145 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
142 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 146 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
143 virtual bool GetAcceleratorForCommandId( 147 virtual bool GetAcceleratorForCommandId(
144 int command_id, 148 int command_id,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 scoped_ptr<views::MenuRunner> context_menu_runner_; 301 scoped_ptr<views::MenuRunner> context_menu_runner_;
298 302
299 scoped_ptr<TouchSelectionController> touch_selection_controller_; 303 scoped_ptr<TouchSelectionController> touch_selection_controller_;
300 304
301 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 305 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
302 }; 306 };
303 307
304 } // namespace views 308 } // namespace views
305 309
306 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 310 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/link.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698