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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 // Hide a given view temporarily without losing (mouse) events and / or | 395 // Hide a given view temporarily without losing (mouse) events and / or |
396 // changing the size of it. If |immediate| is set the change will be | 396 // changing the size of it. If |immediate| is set the change will be |
397 // immediately applied - otherwise it will change gradually. | 397 // immediately applied - otherwise it will change gradually. |
398 // If |hide| is set the view will get hidden, otherwise it gets shown. | 398 // If |hide| is set the view will get hidden, otherwise it gets shown. |
399 void SetViewHidden(AppListItemView* view, bool hide, bool immediate); | 399 void SetViewHidden(AppListItemView* view, bool hide, bool immediate); |
400 | 400 |
401 // Whether the folder drag-and-drop UI should be enabled. | 401 // Whether the folder drag-and-drop UI should be enabled. |
402 bool EnableFolderDragDropUI(); | 402 bool EnableFolderDragDropUI(); |
403 | 403 |
404 // Whether target specified by |drap_target| can accept more items to be | |
405 // dropped into it. | |
406 bool CanDropIntoTarget(const Index& drop_target) const; | |
407 | |
408 // Returns the size of the entire tile grid. | 404 // Returns the size of the entire tile grid. |
409 gfx::Size GetTileGridSize() const; | 405 gfx::Size GetTileGridSize() const; |
410 | 406 |
411 // Returns the slot number which the given |point| falls into or the closest | 407 // Returns the slot number which the given |point| falls into or the closest |
412 // slot if |point| is outside the page's bounds. | 408 // slot if |point| is outside the page's bounds. |
413 Index GetNearestTileIndexForPoint(const gfx::Point& point) const; | 409 Index GetNearestTileIndexForPoint(const gfx::Point& point) const; |
414 | 410 |
415 // Gets the bounds of the tile located at |slot| on the current page. | 411 // Gets the bounds of the tile located at |slot| on the current page. |
416 gfx::Rect GetExpectedTileBounds(int slot) const; | 412 gfx::Rect GetExpectedTileBounds(int slot) const; |
417 | 413 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 | 568 |
573 // True if the drag_view_ item is a folder item being dragged for reparenting. | 569 // True if the drag_view_ item is a folder item being dragged for reparenting. |
574 bool dragging_for_reparent_item_; | 570 bool dragging_for_reparent_item_; |
575 | 571 |
576 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 572 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
577 }; | 573 }; |
578 | 574 |
579 } // namespace app_list | 575 } // namespace app_list |
580 | 576 |
581 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 577 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
OLD | NEW |