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

Side by Side Diff: ash/shelf/shelf_view.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, 6 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
« no previous file with comments | « ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc ('k') | ash/shelf/shelf_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_SHELF_SHELF_VIEW_H_ 5 #ifndef ASH_SHELF_SHELF_VIEW_H_
6 #define ASH_SHELF_SHELF_VIEW_H_ 6 #define ASH_SHELF_SHELF_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 ShelfGestureHandler gesture_handler_; 382 ShelfGestureHandler gesture_handler_;
383 383
384 // True when an item being inserted or removed in the model cancels a drag. 384 // True when an item being inserted or removed in the model cancels a drag.
385 bool cancelling_drag_model_changed_; 385 bool cancelling_drag_model_changed_;
386 386
387 // Index of the last hidden launcher item. If there are no hidden items this 387 // Index of the last hidden launcher item. If there are no hidden items this
388 // will be equal to last_visible_index_ + 1. 388 // will be equal to last_visible_index_ + 1.
389 mutable int last_hidden_index_; 389 mutable int last_hidden_index_;
390 390
391 // The timestamp of the event which closed the last menu - or 0. 391 // The timestamp of the event which closed the last menu - or 0.
392 base::TimeDelta closing_event_time_; 392 base::TimeTicks closing_event_time_;
393 393
394 // When this object gets deleted while a menu is shown, this pointed 394 // When this object gets deleted while a menu is shown, this pointed
395 // element will be set to false. 395 // element will be set to false.
396 bool* got_deleted_; 396 bool* got_deleted_;
397 397
398 // True if a drag and drop operation created/pinned the item in the launcher 398 // True if a drag and drop operation created/pinned the item in the launcher
399 // and it needs to be deleted/unpinned again if the operation gets cancelled. 399 // and it needs to be deleted/unpinned again if the operation gets cancelled.
400 bool drag_and_drop_item_pinned_; 400 bool drag_and_drop_item_pinned_;
401 401
402 // The ShelfItem which is currently used for a drag and a drop operation 402 // The ShelfItem which is currently used for a drag and a drop operation
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 // Tracks UMA metrics based on shelf button press actions. 449 // Tracks UMA metrics based on shelf button press actions.
450 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; 450 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_;
451 451
452 DISALLOW_COPY_AND_ASSIGN(ShelfView); 452 DISALLOW_COPY_AND_ASSIGN(ShelfView);
453 }; 453 };
454 454
455 } // namespace ash 455 } // namespace ash
456 456
457 #endif // ASH_SHELF_SHELF_VIEW_H_ 457 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc ('k') | ash/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698