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

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

Issue 10693160: Add and specify Views::Textfield::SelectAll |reversed| flag, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove redundant comments. Created 8 years, 5 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 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.h" 10 #include "ui/base/events.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const gfx::Point& p) OVERRIDE; 87 const gfx::Point& p) OVERRIDE;
88 virtual bool CanStartDragForView(View* sender, 88 virtual bool CanStartDragForView(View* sender,
89 const gfx::Point& press_pt, 89 const gfx::Point& press_pt,
90 const gfx::Point& p) OVERRIDE; 90 const gfx::Point& p) OVERRIDE;
91 91
92 // NativeTextfieldWrapper overrides: 92 // NativeTextfieldWrapper overrides:
93 virtual string16 GetText() const OVERRIDE; 93 virtual string16 GetText() const OVERRIDE;
94 virtual void UpdateText() OVERRIDE; 94 virtual void UpdateText() OVERRIDE;
95 virtual void AppendText(const string16& text) OVERRIDE; 95 virtual void AppendText(const string16& text) OVERRIDE;
96 virtual string16 GetSelectedText() const OVERRIDE; 96 virtual string16 GetSelectedText() const OVERRIDE;
97 virtual void SelectAll() OVERRIDE; 97 virtual void SelectAll(bool reversed) OVERRIDE;
98 virtual void ClearSelection() OVERRIDE; 98 virtual void ClearSelection() OVERRIDE;
99 virtual void UpdateBorder() OVERRIDE; 99 virtual void UpdateBorder() OVERRIDE;
100 virtual void UpdateTextColor() OVERRIDE; 100 virtual void UpdateTextColor() OVERRIDE;
101 virtual void UpdateBackgroundColor() OVERRIDE; 101 virtual void UpdateBackgroundColor() OVERRIDE;
102 virtual void UpdateCursorColor() OVERRIDE; 102 virtual void UpdateCursorColor() OVERRIDE;
103 virtual void UpdateReadOnly() OVERRIDE; 103 virtual void UpdateReadOnly() OVERRIDE;
104 virtual void UpdateFont() OVERRIDE; 104 virtual void UpdateFont() OVERRIDE;
105 virtual void UpdateIsObscured() OVERRIDE; 105 virtual void UpdateIsObscured() OVERRIDE;
106 virtual void UpdateEnabled() OVERRIDE; 106 virtual void UpdateEnabled() OVERRIDE;
107 virtual gfx::Insets CalculateInsets() OVERRIDE; 107 virtual gfx::Insets CalculateInsets() OVERRIDE;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 scoped_ptr<views::MenuRunner> context_menu_runner_; 280 scoped_ptr<views::MenuRunner> context_menu_runner_;
281 281
282 scoped_ptr<TouchSelectionController> touch_selection_controller_; 282 scoped_ptr<TouchSelectionController> touch_selection_controller_;
283 283
284 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 284 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
285 }; 285 };
286 286
287 } // namespace views 287 } // namespace views
288 288
289 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 289 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/message_box_view.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