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

Side by Side Diff: ui/views/controls/textfield/native_textfield_views.h

Issue 9358049: Implement STYLE_LOWERCASE style for Aura NativeTextfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update for comments. Created 8 years, 8 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) 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 #pragma once 7 #pragma once
8 8
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool MoveCursorTo(const gfx::Point& point, bool select); 190 bool MoveCursorTo(const gfx::Point& point, bool select);
191 191
192 // Utility function to inform the parent textfield (and its controller if any) 192 // Utility function to inform the parent textfield (and its controller if any)
193 // that the text in the textfield has changed. 193 // that the text in the textfield has changed.
194 void PropagateTextChange(); 194 void PropagateTextChange();
195 195
196 // Does necessary updates when the text and/or the position of the cursor 196 // Does necessary updates when the text and/or the position of the cursor
197 // changed. 197 // changed.
198 void UpdateAfterChange(bool text_changed, bool cursor_changed); 198 void UpdateAfterChange(bool text_changed, bool cursor_changed);
199 199
200 // Utility function to prepare the context menu.. 200 // Utility function to prepare the context menu.
201 void UpdateContextMenu(); 201 void UpdateContextMenu();
202 202
203 // Convenience method to call InputMethod::OnTextInputTypeChanged(); 203 // Convenience method to call InputMethod::OnTextInputTypeChanged();
204 void OnTextInputTypeChanged(); 204 void OnTextInputTypeChanged();
205 205
206 // Convenience method to call InputMethod::OnCaretBoundsChanged(); 206 // Convenience method to call InputMethod::OnCaretBoundsChanged();
207 void OnCaretBoundsChanged(); 207 void OnCaretBoundsChanged();
208 208
209 // Convenience method to call TextfieldController::OnBeforeUserAction(); 209 // Convenience method to call TextfieldController::OnBeforeUserAction();
210 void OnBeforeUserAction(); 210 void OnBeforeUserAction();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 scoped_ptr<views::MenuRunner> context_menu_runner_; 273 scoped_ptr<views::MenuRunner> context_menu_runner_;
274 274
275 scoped_ptr<TouchSelectionController> touch_selection_controller_; 275 scoped_ptr<TouchSelectionController> touch_selection_controller_;
276 276
277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
278 }; 278 };
279 279
280 } // namespace views 280 } // namespace views
281 281
282 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 282 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698