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

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

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gesture recognizer tests Created 4 years, 7 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_;
465 gfx::Point last_drag_location_; 465 gfx::Point last_drag_location_;
466 466
467 // State variables used to track double and triple clicks. 467 // State variables used to track double and triple clicks.
468 size_t aggregated_clicks_; 468 size_t aggregated_clicks_;
469 base::TimeDelta last_click_time_; 469 base::TimeTicks last_click_time_;
470 gfx::Point last_click_location_; 470 gfx::Point last_click_location_;
471 gfx::Range double_click_word_; 471 gfx::Range double_click_word_;
472 472
473 std::unique_ptr<ui::TouchEditingControllerDeprecated> 473 std::unique_ptr<ui::TouchEditingControllerDeprecated>
474 touch_selection_controller_; 474 touch_selection_controller_;
475 475
476 // Used to track touch drag starting location and offset to enable touch 476 // Used to track touch drag starting location and offset to enable touch
477 // scrolling. 477 // scrolling.
478 gfx::Point drag_start_location_; 478 gfx::Point drag_start_location_;
479 int drag_start_display_offset_; 479 int drag_start_display_offset_;
480 480
481 // Tracks if touch editing handles are hidden because user has started 481 // Tracks if touch editing handles are hidden because user has started
482 // scrolling. If |true|, handles are shown after scrolling ends. 482 // scrolling. If |true|, handles are shown after scrolling ends.
483 bool touch_handles_hidden_due_to_scroll_; 483 bool touch_handles_hidden_due_to_scroll_;
484 484
485 // Context menu related members. 485 // Context menu related members.
486 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; 486 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_;
487 std::unique_ptr<views::MenuRunner> context_menu_runner_; 487 std::unique_ptr<views::MenuRunner> context_menu_runner_;
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

Powered by Google App Engine
This is Rietveld 408576698