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

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

Issue 138033014: Consistent fading behavior for touch editing handles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Returns true if the current text input type allows access by the IME. 337 // Returns true if the current text input type allows access by the IME.
338 bool ImeEditingAllowed() const; 338 bool ImeEditingAllowed() const;
339 339
340 // Reveals the password character at |index| for a set duration. 340 // Reveals the password character at |index| for a set duration.
341 // If |index| is -1, the existing revealed character will be reset. 341 // If |index| is -1, the existing revealed character will be reset.
342 void RevealPasswordChar(int index); 342 void RevealPasswordChar(int index);
343 343
344 void CreateTouchSelectionControllerAndNotifyIt(); 344 void CreateTouchSelectionControllerAndNotifyIt();
345 345
346 // Sets touch selection controller to |tsc|, which is allowed to be NULL. The
347 // old touch selection controller, if any, will fade out.
348 void SetTouchSelectionController(ui::TouchSelectionController* tsc);
349
346 // The text model. 350 // The text model.
347 scoped_ptr<TextfieldModel> model_; 351 scoped_ptr<TextfieldModel> model_;
348 352
349 // This is the current listener for events from this Textfield. 353 // This is the current listener for events from this Textfield.
350 TextfieldController* controller_; 354 TextfieldController* controller_;
351 355
352 // True if this Textfield cannot accept input and is read-only. 356 // True if this Textfield cannot accept input and is read-only.
353 bool read_only_; 357 bool read_only_;
354 358
355 // The default number of average characters for the width of this text field. 359 // The default number of average characters for the width of this text field.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 422
419 // Used to bind callback functions to this object. 423 // Used to bind callback functions to this object.
420 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 424 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
421 425
422 DISALLOW_COPY_AND_ASSIGN(Textfield); 426 DISALLOW_COPY_AND_ASSIGN(Textfield);
423 }; 427 };
424 428
425 } // namespace views 429 } // namespace views
426 430
427 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 431 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698