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