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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 content::WebContents* start_page_contents); | 78 content::WebContents* start_page_contents); |
79 virtual ~AppsGridView(); | 79 virtual ~AppsGridView(); |
80 | 80 |
81 // Sets fixed layout parameters. After setting this, CalculateLayout below | 81 // Sets fixed layout parameters. After setting this, CalculateLayout below |
82 // is no longer called to dynamically choosing those layout params. | 82 // is no longer called to dynamically choosing those layout params. |
83 void SetLayout(int icon_size, int cols, int rows_per_page); | 83 void SetLayout(int icon_size, int cols, int rows_per_page); |
84 | 84 |
85 int cols() { return cols_; } | 85 int cols() { return cols_; } |
86 int rows_per_page() { return rows_per_page_; } | 86 int rows_per_page() { return rows_per_page_; } |
87 | 87 |
88 void ResetForShow(); | |
tapted
2014/03/28 07:39:15
nit: add a comment. Perhaps a clearer name would b
jennyz
2014/03/28 16:59:46
+1.
calamity
2014/03/31 08:23:54
Done.
| |
89 | |
88 // Sets |model| to use. Note this does not take ownership of |model|. | 90 // Sets |model| to use. Note this does not take ownership of |model|. |
89 void SetModel(AppListModel* model); | 91 void SetModel(AppListModel* model); |
90 | 92 |
91 // Sets the |item_list| to render. Note this does not take ownership of | 93 // Sets the |item_list| to render. Note this does not take ownership of |
92 // |item_list|. | 94 // |item_list|. |
93 void SetItemList(AppListItemList* item_list); | 95 void SetItemList(AppListItemList* item_list); |
94 | 96 |
95 void SetSelectedView(views::View* view); | 97 void SetSelectedView(views::View* view); |
96 void ClearSelectedView(views::View* view); | 98 void ClearSelectedView(views::View* view); |
97 void ClearAnySelectedView(); | 99 void ClearAnySelectedView(); |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
526 | 528 |
527 // True if the drag_view_ item is a folder item being dragged for reparenting. | 529 // True if the drag_view_ item is a folder item being dragged for reparenting. |
528 bool dragging_for_reparent_item_; | 530 bool dragging_for_reparent_item_; |
529 | 531 |
530 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 532 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
531 }; | 533 }; |
532 | 534 |
533 } // namespace app_list | 535 } // namespace app_list |
534 | 536 |
535 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 537 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
OLD | NEW |