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

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: Rebase 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 455
456 // Is the user potentially dragging and dropping from this view? 456 // Is the user potentially dragging and dropping from this view?
457 bool initiating_drag_; 457 bool initiating_drag_;
458 458
459 // A timer and point used to modify the selection when dragging. 459 // A timer and point used to modify the selection when dragging.
460 base::RepeatingTimer drag_selection_timer_; 460 base::RepeatingTimer drag_selection_timer_;
461 gfx::Point last_drag_location_; 461 gfx::Point last_drag_location_;
462 462
463 // State variables used to track double and triple clicks. 463 // State variables used to track double and triple clicks.
464 size_t aggregated_clicks_; 464 size_t aggregated_clicks_;
465 base::TimeDelta last_click_time_; 465 base::TimeTicks last_click_time_;
466 gfx::Point last_click_location_; 466 gfx::Point last_click_location_;
467 gfx::Range double_click_word_; 467 gfx::Range double_click_word_;
468 468
469 std::unique_ptr<ui::TouchEditingControllerDeprecated> 469 std::unique_ptr<ui::TouchEditingControllerDeprecated>
470 touch_selection_controller_; 470 touch_selection_controller_;
471 471
472 // Used to track touch drag starting location and offset to enable touch 472 // Used to track touch drag starting location and offset to enable touch
473 // scrolling. 473 // scrolling.
474 gfx::Point drag_start_location_; 474 gfx::Point drag_start_location_;
475 int drag_start_display_offset_; 475 int drag_start_display_offset_;
476 476
477 // Tracks if touch editing handles are hidden because user has started 477 // Tracks if touch editing handles are hidden because user has started
478 // scrolling. If |true|, handles are shown after scrolling ends. 478 // scrolling. If |true|, handles are shown after scrolling ends.
479 bool touch_handles_hidden_due_to_scroll_; 479 bool touch_handles_hidden_due_to_scroll_;
480 480
481 // Context menu related members. 481 // Context menu related members.
482 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; 482 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_;
483 std::unique_ptr<views::MenuRunner> context_menu_runner_; 483 std::unique_ptr<views::MenuRunner> context_menu_runner_;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698