OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 427 |
428 // The accessible name of the text field. | 428 // The accessible name of the text field. |
429 base::string16 accessible_name_; | 429 base::string16 accessible_name_; |
430 | 430 |
431 // The input type of this text field. | 431 // The input type of this text field. |
432 ui::TextInputType text_input_type_; | 432 ui::TextInputType text_input_type_; |
433 | 433 |
434 // The input flags of this text field. | 434 // The input flags of this text field. |
435 int text_input_flags_; | 435 int text_input_flags_; |
436 | 436 |
437 // The duration and timer to reveal the last typed password character. | 437 // The timer to reveal the last typed password character. |
438 base::TimeDelta password_reveal_duration_; | |
439 base::OneShotTimer password_reveal_timer_; | 438 base::OneShotTimer password_reveal_timer_; |
440 | 439 |
441 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction() | 440 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction() |
442 // has been called, but OnAfterUserAction() has not yet been called. | 441 // has been called, but OnAfterUserAction() has not yet been called. |
443 bool performing_user_action_; | 442 bool performing_user_action_; |
444 | 443 |
445 // True if InputMethod::CancelComposition() should not be called. | 444 // True if InputMethod::CancelComposition() should not be called. |
446 bool skip_input_method_cancel_composition_; | 445 bool skip_input_method_cancel_composition_; |
447 | 446 |
448 // The text editing cursor repaint timer and visibility. | 447 // The text editing cursor repaint timer and visibility. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 483 |
485 // Used to bind callback functions to this object. | 484 // Used to bind callback functions to this object. |
486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 485 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
487 | 486 |
488 DISALLOW_COPY_AND_ASSIGN(Textfield); | 487 DISALLOW_COPY_AND_ASSIGN(Textfield); |
489 }; | 488 }; |
490 | 489 |
491 } // namespace views | 490 } // namespace views |
492 | 491 |
493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 492 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |