| 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 UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Index folder_drop_target_; | 527 Index folder_drop_target_; |
| 528 | 528 |
| 529 // The index where an empty slot has been left as a placeholder for the | 529 // The index where an empty slot has been left as a placeholder for the |
| 530 // reorder drop target. This updates when the reorder animation triggers. | 530 // reorder drop target. This updates when the reorder animation triggers. |
| 531 Index reorder_placeholder_; | 531 Index reorder_placeholder_; |
| 532 | 532 |
| 533 // The current action that ending a drag will perform. | 533 // The current action that ending a drag will perform. |
| 534 DropAttempt drop_attempt_; | 534 DropAttempt drop_attempt_; |
| 535 | 535 |
| 536 // Timer for re-ordering the |drop_target_| and |drag_view_|. | 536 // Timer for re-ordering the |drop_target_| and |drag_view_|. |
| 537 base::OneShotTimer<AppsGridView> reorder_timer_; | 537 base::OneShotTimer reorder_timer_; |
| 538 | 538 |
| 539 // Timer for dropping |drag_view_| into the folder containing | 539 // Timer for dropping |drag_view_| into the folder containing |
| 540 // the |drop_target_|. | 540 // the |drop_target_|. |
| 541 base::OneShotTimer<AppsGridView> folder_dropping_timer_; | 541 base::OneShotTimer folder_dropping_timer_; |
| 542 | 542 |
| 543 // Timer for dragging a folder item out of folder container ink bubble. | 543 // Timer for dragging a folder item out of folder container ink bubble. |
| 544 base::OneShotTimer<AppsGridView> folder_item_reparent_timer_; | 544 base::OneShotTimer folder_item_reparent_timer_; |
| 545 | 545 |
| 546 // An application target drag and drop host which accepts dnd operations. | 546 // An application target drag and drop host which accepts dnd operations. |
| 547 ApplicationDragAndDropHost* drag_and_drop_host_; | 547 ApplicationDragAndDropHost* drag_and_drop_host_; |
| 548 | 548 |
| 549 // The drag operation is currently inside the dnd host and events get | 549 // The drag operation is currently inside the dnd host and events get |
| 550 // forwarded. | 550 // forwarded. |
| 551 bool forward_events_to_drag_and_drop_host_; | 551 bool forward_events_to_drag_and_drop_host_; |
| 552 | 552 |
| 553 // Last mouse drag location in this view's coordinates. | 553 // Last mouse drag location in this view's coordinates. |
| 554 gfx::Point last_drag_point_; | 554 gfx::Point last_drag_point_; |
| 555 | 555 |
| 556 // Timer to auto flip page when dragging an item near the left/right edges. | 556 // Timer to auto flip page when dragging an item near the left/right edges. |
| 557 base::OneShotTimer<AppsGridView> page_flip_timer_; | 557 base::OneShotTimer page_flip_timer_; |
| 558 | 558 |
| 559 // Target page to switch to when |page_flip_timer_| fires. | 559 // Target page to switch to when |page_flip_timer_| fires. |
| 560 int page_flip_target_; | 560 int page_flip_target_; |
| 561 | 561 |
| 562 // Delay in milliseconds of when |page_flip_timer_| should fire after user | 562 // Delay in milliseconds of when |page_flip_timer_| should fire after user |
| 563 // drags an item near the edges. | 563 // drags an item near the edges. |
| 564 int page_flip_delay_in_ms_; | 564 int page_flip_delay_in_ms_; |
| 565 | 565 |
| 566 views::BoundsAnimator bounds_animator_; | 566 views::BoundsAnimator bounds_animator_; |
| 567 | 567 |
| 568 // The most recent activated folder item view. | 568 // The most recent activated folder item view. |
| 569 AppListItemView* activated_folder_item_view_; | 569 AppListItemView* activated_folder_item_view_; |
| 570 | 570 |
| 571 // Tracks if drag_view_ is dragged out of the folder container bubble | 571 // Tracks if drag_view_ is dragged out of the folder container bubble |
| 572 // when dragging a item inside a folder. | 572 // when dragging a item inside a folder. |
| 573 bool drag_out_of_folder_container_; | 573 bool drag_out_of_folder_container_; |
| 574 | 574 |
| 575 // True if the drag_view_ item is a folder item being dragged for reparenting. | 575 // True if the drag_view_ item is a folder item being dragged for reparenting. |
| 576 bool dragging_for_reparent_item_; | 576 bool dragging_for_reparent_item_; |
| 577 | 577 |
| 578 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 578 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
| 579 }; | 579 }; |
| 580 | 580 |
| 581 } // namespace app_list | 581 } // namespace app_list |
| 582 | 582 |
| 583 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 583 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
| OLD | NEW |