Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2094)

Side by Side Diff: ui/app_list/views/apps_grid_view.h

Issue 305013014: Disable folder UI when app sync is disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 void set_folder_delegate(AppsGridViewFolderDelegate* folder_delegate) { 208 void set_folder_delegate(AppsGridViewFolderDelegate* folder_delegate) {
209 folder_delegate_ = folder_delegate; 209 folder_delegate_ = folder_delegate;
210 } 210 }
211 211
212 AppListItemView* activated_folder_item_view() const { 212 AppListItemView* activated_folder_item_view() const {
213 return activated_folder_item_view_; 213 return activated_folder_item_view_;
214 } 214 }
215 215
216 const AppListModel* model() const { return model_; }
217
216 private: 218 private:
217 friend class test::AppsGridViewTestApi; 219 friend class test::AppsGridViewTestApi;
218 220
219 enum DropAttempt { 221 enum DropAttempt {
220 DROP_FOR_NONE, 222 DROP_FOR_NONE,
221 DROP_FOR_REORDER, 223 DROP_FOR_REORDER,
222 DROP_FOR_FOLDER, 224 DROP_FOR_FOLDER,
223 }; 225 };
224 226
225 // Represents the index to an item view in the grid. 227 // Represents the index to an item view in the grid.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 552
551 // True if the drag_view_ item is a folder item being dragged for reparenting. 553 // True if the drag_view_ item is a folder item being dragged for reparenting.
552 bool dragging_for_reparent_item_; 554 bool dragging_for_reparent_item_;
553 555
554 DISALLOW_COPY_AND_ASSIGN(AppsGridView); 556 DISALLOW_COPY_AND_ASSIGN(AppsGridView);
555 }; 557 };
556 558
557 } // namespace app_list 559 } // namespace app_list
558 560
559 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 561 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698