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

Side by Side Diff: views/controls/textfield/native_textfield_wrapper.h

Issue 7067015: An edit for SetText needs to be merged with previous edit for omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual TextStyle* CreateTextStyle() = 0; 131 virtual TextStyle* CreateTextStyle() = 0;
132 132
133 // Applies the |style| to the text specified by the |range|. 133 // Applies the |style| to the text specified by the |range|.
134 // See |Textfield::ApplyTextStyle| for detail. 134 // See |Textfield::ApplyTextStyle| for detail.
135 virtual void ApplyTextStyle(const TextStyle* style, 135 virtual void ApplyTextStyle(const TextStyle* style,
136 const ui::Range& range) = 0; 136 const ui::Range& range) = 0;
137 137
138 // Clears all text styles in this textfield. 138 // Clears all text styles in this textfield.
139 virtual void ClearAllTextStyles() = 0; 139 virtual void ClearAllTextStyles() = 0;
140 140
141 // Clears Edit history.
142 virtual void ClearEditHistory() = 0;
143
141 // Creates an appropriate NativeTextfieldWrapper for the platform. 144 // Creates an appropriate NativeTextfieldWrapper for the platform.
142 static NativeTextfieldWrapper* CreateWrapper(Textfield* field); 145 static NativeTextfieldWrapper* CreateWrapper(Textfield* field);
143 }; 146 };
144 147
145 } // namespace views 148 } // namespace views
146 149
147 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 150 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698