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

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

Issue 249813002: [Win] Redesign the avatar bubble UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void set_placeholder_text(const base::string16& text) { 124 void set_placeholder_text(const base::string16& text) {
125 placeholder_text_ = text; 125 placeholder_text_ = text;
126 } 126 }
127 virtual base::string16 GetPlaceholderText() const; 127 virtual base::string16 GetPlaceholderText() const;
128 128
129 SkColor placeholder_text_color() const { return placeholder_text_color_; } 129 SkColor placeholder_text_color() const { return placeholder_text_color_; }
130 void set_placeholder_text_color(SkColor color) { 130 void set_placeholder_text_color(SkColor color) {
131 placeholder_text_color_ = color; 131 placeholder_text_color_ = color;
132 } 132 }
133 133
134 // Get or set the horizontal alignment used for the button from the underlying
135 // RenderText object.
136 gfx::HorizontalAlignment GetHorizontalAlignment() const;
137 void SetHorizontalAlignment(gfx::HorizontalAlignment alignment);
138
134 // Displays a virtual keyboard or alternate input view if enabled. 139 // Displays a virtual keyboard or alternate input view if enabled.
135 void ShowImeIfNeeded(); 140 void ShowImeIfNeeded();
136 141
137 // Returns whether or not an IME is composing text. 142 // Returns whether or not an IME is composing text.
138 bool IsIMEComposing() const; 143 bool IsIMEComposing() const;
139 144
140 // Gets the selected logical text range. 145 // Gets the selected logical text range.
141 const gfx::Range& GetSelectedRange() const; 146 const gfx::Range& GetSelectedRange() const;
142 147
143 // Selects the specified logical text range. 148 // Selects the specified logical text range.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 438
434 // Used to bind callback functions to this object. 439 // Used to bind callback functions to this object.
435 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 440 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
436 441
437 DISALLOW_COPY_AND_ASSIGN(Textfield); 442 DISALLOW_COPY_AND_ASSIGN(Textfield);
438 }; 443 };
439 444
440 } // namespace views 445 } // namespace views
441 446
442 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 447 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698