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 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 ShelfGestureHandler gesture_handler_; | 375 ShelfGestureHandler gesture_handler_; |
376 | 376 |
377 // True when an item being inserted or removed in the model cancels a drag. | 377 // True when an item being inserted or removed in the model cancels a drag. |
378 bool cancelling_drag_model_changed_; | 378 bool cancelling_drag_model_changed_; |
379 | 379 |
380 // Index of the last hidden launcher item. If there are no hidden items this | 380 // Index of the last hidden launcher item. If there are no hidden items this |
381 // will be equal to last_visible_index_ + 1. | 381 // will be equal to last_visible_index_ + 1. |
382 mutable int last_hidden_index_; | 382 mutable int last_hidden_index_; |
383 | 383 |
384 // The timestamp of the event which closed the last menu - or 0. | 384 // The timestamp of the event which closed the last menu - or 0. |
385 base::TimeDelta closing_event_time_; | 385 base::TimeTicks closing_event_time_; |
386 | 386 |
387 // When this object gets deleted while a menu is shown, this pointed | 387 // When this object gets deleted while a menu is shown, this pointed |
388 // element will be set to false. | 388 // element will be set to false. |
389 bool* got_deleted_; | 389 bool* got_deleted_; |
390 | 390 |
391 // True if a drag and drop operation created/pinned the item in the launcher | 391 // True if a drag and drop operation created/pinned the item in the launcher |
392 // and it needs to be deleted/unpinned again if the operation gets cancelled. | 392 // and it needs to be deleted/unpinned again if the operation gets cancelled. |
393 bool drag_and_drop_item_pinned_; | 393 bool drag_and_drop_item_pinned_; |
394 | 394 |
395 // The ShelfItem which is currently used for a drag and a drop operation | 395 // 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 Loading... |
441 | 441 |
442 // Tracks UMA metrics based on shelf button press actions. | 442 // Tracks UMA metrics based on shelf button press actions. |
443 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; | 443 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; |
444 | 444 |
445 DISALLOW_COPY_AND_ASSIGN(ShelfView); | 445 DISALLOW_COPY_AND_ASSIGN(ShelfView); |
446 }; | 446 }; |
447 | 447 |
448 } // namespace ash | 448 } // namespace ash |
449 | 449 |
450 #endif // ASH_SHELF_SHELF_VIEW_H_ | 450 #endif // ASH_SHELF_SHELF_VIEW_H_ |
OLD | NEW |