| 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_APPS_GRID_VIEW_H_ | 5 #ifndef UI_APP_LIST_APPS_GRID_VIEW_H_ |
| 6 #define UI_APP_LIST_APPS_GRID_VIEW_H_ | 6 #define UI_APP_LIST_APPS_GRID_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 gfx::Size icon_size_; | 176 gfx::Size icon_size_; |
| 177 int cols_; | 177 int cols_; |
| 178 int rows_per_page_; | 178 int rows_per_page_; |
| 179 | 179 |
| 180 // Tracks app item views. There is a view per item in |model_|. | 180 // Tracks app item views. There is a view per item in |model_|. |
| 181 views::ViewModel view_model_; | 181 views::ViewModel view_model_; |
| 182 | 182 |
| 183 views::View* selected_view_; | 183 views::View* selected_view_; |
| 184 | 184 |
| 185 views::View* drag_view_; | 185 views::View* drag_view_; |
| 186 gfx::Point drag_offset_; | 186 gfx::Point drag_start_; |
| 187 Pointer drag_pointer_; | 187 Pointer drag_pointer_; |
| 188 Index drop_target_; | 188 Index drop_target_; |
| 189 | 189 |
| 190 gfx::Point last_drag_point_; | 190 gfx::Point last_drag_point_; |
| 191 | 191 |
| 192 // Timer to auto flip page when dragging an item near the left/right edges. | 192 // Timer to auto flip page when dragging an item near the left/right edges. |
| 193 base::OneShotTimer<AppsGridView> page_flip_timer_; | 193 base::OneShotTimer<AppsGridView> page_flip_timer_; |
| 194 | 194 |
| 195 // Target page to switch to when |page_flip_timer_| fires. | 195 // Target page to switch to when |page_flip_timer_| fires. |
| 196 int page_flip_target_; | 196 int page_flip_target_; |
| 197 | 197 |
| 198 // Delay in milliseconds of when |page_flip_timer_| should fire after user | 198 // Delay in milliseconds of when |page_flip_timer_| should fire after user |
| 199 // drags an item near the edges. | 199 // drags an item near the edges. |
| 200 int page_flip_delay_in_ms_; | 200 int page_flip_delay_in_ms_; |
| 201 | 201 |
| 202 views::BoundsAnimator bounds_animator_; | 202 views::BoundsAnimator bounds_animator_; |
| 203 | 203 |
| 204 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 204 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 } // namespace app_list | 207 } // namespace app_list |
| 208 | 208 |
| 209 #endif // UI_APP_LIST_APPS_GRID_VIEW_H_ | 209 #endif // UI_APP_LIST_APPS_GRID_VIEW_H_ |
| OLD | NEW |