| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 base::string16 accessible_name_; | 430 base::string16 accessible_name_; |
| 431 | 431 |
| 432 // The input type of this text field. | 432 // The input type of this text field. |
| 433 ui::TextInputType text_input_type_; | 433 ui::TextInputType text_input_type_; |
| 434 | 434 |
| 435 // The input flags of this text field. | 435 // The input flags of this text field. |
| 436 int text_input_flags_; | 436 int text_input_flags_; |
| 437 | 437 |
| 438 // The duration and timer to reveal the last typed password character. | 438 // The duration and timer to reveal the last typed password character. |
| 439 base::TimeDelta password_reveal_duration_; | 439 base::TimeDelta password_reveal_duration_; |
| 440 base::OneShotTimer<Textfield> password_reveal_timer_; | 440 base::OneShotTimer password_reveal_timer_; |
| 441 | 441 |
| 442 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction() | 442 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction() |
| 443 // has been called, but OnAfterUserAction() has not yet been called. | 443 // has been called, but OnAfterUserAction() has not yet been called. |
| 444 bool performing_user_action_; | 444 bool performing_user_action_; |
| 445 | 445 |
| 446 // True if InputMethod::CancelComposition() should not be called. | 446 // True if InputMethod::CancelComposition() should not be called. |
| 447 bool skip_input_method_cancel_composition_; | 447 bool skip_input_method_cancel_composition_; |
| 448 | 448 |
| 449 // The text editing cursor repaint timer and visibility. | 449 // The text editing cursor repaint timer and visibility. |
| 450 base::RepeatingTimer<Textfield> cursor_repaint_timer_; | 450 base::RepeatingTimer cursor_repaint_timer_; |
| 451 bool cursor_visible_; | 451 bool cursor_visible_; |
| 452 | 452 |
| 453 // The drop cursor is a visual cue for where dragged text will be dropped. | 453 // The drop cursor is a visual cue for where dragged text will be dropped. |
| 454 bool drop_cursor_visible_; | 454 bool drop_cursor_visible_; |
| 455 gfx::SelectionModel drop_cursor_position_; | 455 gfx::SelectionModel drop_cursor_position_; |
| 456 | 456 |
| 457 // Is the user potentially dragging and dropping from this view? | 457 // Is the user potentially dragging and dropping from this view? |
| 458 bool initiating_drag_; | 458 bool initiating_drag_; |
| 459 | 459 |
| 460 // A timer and point used to modify the selection when dragging. | 460 // A timer and point used to modify the selection when dragging. |
| 461 base::RepeatingTimer<Textfield> drag_selection_timer_; | 461 base::RepeatingTimer drag_selection_timer_; |
| 462 gfx::Point last_drag_location_; | 462 gfx::Point last_drag_location_; |
| 463 | 463 |
| 464 // State variables used to track double and triple clicks. | 464 // State variables used to track double and triple clicks. |
| 465 size_t aggregated_clicks_; | 465 size_t aggregated_clicks_; |
| 466 base::TimeDelta last_click_time_; | 466 base::TimeDelta last_click_time_; |
| 467 gfx::Point last_click_location_; | 467 gfx::Point last_click_location_; |
| 468 gfx::Range double_click_word_; | 468 gfx::Range double_click_word_; |
| 469 | 469 |
| 470 scoped_ptr<ui::TouchEditingControllerDeprecated> touch_selection_controller_; | 470 scoped_ptr<ui::TouchEditingControllerDeprecated> touch_selection_controller_; |
| 471 | 471 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 484 | 484 |
| 485 // Used to bind callback functions to this object. | 485 // Used to bind callback functions to this object. |
| 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 487 | 487 |
| 488 DISALLOW_COPY_AND_ASSIGN(Textfield); | 488 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 } // namespace views | 491 } // namespace views |
| 492 | 492 |
| 493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |