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

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

Issue 2322303002: Textfield: suppress cursor repaints when there's a selection (Closed)
Patch Set: refactor Created 4 years, 3 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction() 445 // Tracks whether a user action is being performed; i.e. OnBeforeUserAction()
446 // has been called, but OnAfterUserAction() has not yet been called. 446 // has been called, but OnAfterUserAction() has not yet been called.
447 bool performing_user_action_; 447 bool performing_user_action_;
448 448
449 // True if InputMethod::CancelComposition() should not be called. 449 // True if InputMethod::CancelComposition() should not be called.
450 bool skip_input_method_cancel_composition_; 450 bool skip_input_method_cancel_composition_;
451 451
452 // The text editing cursor repaint timer and visibility. 452 // The text editing cursor repaint timer and visibility.
453 base::RepeatingTimer cursor_repaint_timer_; 453 base::RepeatingTimer cursor_repaint_timer_;
454 bool cursor_visible_; 454 bool editing_cursor_visible_;
455 455
456 // The drop cursor is a visual cue for where dragged text will be dropped. 456 // The drop cursor is a visual cue for where dragged text will be dropped.
457 bool drop_cursor_visible_; 457 bool drop_cursor_visible_;
458 gfx::SelectionModel drop_cursor_position_; 458 gfx::SelectionModel drop_cursor_position_;
459 459
460 // Is the user potentially dragging and dropping from this view? 460 // Is the user potentially dragging and dropping from this view?
461 bool initiating_drag_; 461 bool initiating_drag_;
462 462
463 // A timer and point used to modify the selection when dragging. 463 // A timer and point used to modify the selection when dragging.
464 base::RepeatingTimer drag_selection_timer_; 464 base::RepeatingTimer drag_selection_timer_;
(...skipping 23 matching lines...) Expand all
488 488
489 // Used to bind callback functions to this object. 489 // Used to bind callback functions to this object.
490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 490 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
491 491
492 DISALLOW_COPY_AND_ASSIGN(Textfield); 492 DISALLOW_COPY_AND_ASSIGN(Textfield);
493 }; 493 };
494 494
495 } // namespace views 495 } // namespace views
496 496
497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield.cc » ('j') | ui/views/controls/textfield/textfield.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698