| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COCOA_APPS_GRID_CONTROLLER_H_ | 5 #ifndef UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ |
| 6 #define UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ | 6 #define UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 - (AppsGridViewItem*)itemAtIndex:(size_t)itemIndex; | 65 - (AppsGridViewItem*)itemAtIndex:(size_t)itemIndex; |
| 66 | 66 |
| 67 - (app_list::AppListModel*)model; | 67 - (app_list::AppListModel*)model; |
| 68 | 68 |
| 69 - (void)setModel:(scoped_ptr<app_list::AppListModel>)newModel; | 69 - (void)setModel:(scoped_ptr<app_list::AppListModel>)newModel; |
| 70 | 70 |
| 71 - (void)setDelegate:(app_list::AppListViewDelegate*)newDelegate; | 71 - (void)setDelegate:(app_list::AppListViewDelegate*)newDelegate; |
| 72 | 72 |
| 73 - (size_t)visiblePage; | 73 - (size_t)visiblePage; |
| 74 | 74 |
| 75 // Calls delegate_->ActivateAppListItem for the currently selected item by | 75 // Calls item->Activate for the currently selected item by simulating a click. |
| 76 // simulating a click. | |
| 77 - (void)activateSelection; | 76 - (void)activateSelection; |
| 78 | 77 |
| 79 // Return the number of pages of icons in the grid. | 78 // Return the number of pages of icons in the grid. |
| 80 - (size_t)pageCount; | 79 - (size_t)pageCount; |
| 81 | 80 |
| 82 // Return the number of items over all pages in the grid. | 81 // Return the number of items over all pages in the grid. |
| 83 - (size_t)itemCount; | 82 - (size_t)itemCount; |
| 84 | 83 |
| 85 // Scroll to a page in the grid view with an animation. | 84 // Scroll to a page in the grid view with an animation. |
| 86 - (void)scrollToPage:(size_t)pageIndex; | 85 - (void)scrollToPage:(size_t)pageIndex; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 117 @end | 116 @end |
| 118 | 117 |
| 119 @interface AppsGridController(TestingAPI) | 118 @interface AppsGridController(TestingAPI) |
| 120 | 119 |
| 121 - (AppsCollectionViewDragManager*)dragManager; | 120 - (AppsCollectionViewDragManager*)dragManager; |
| 122 - (size_t)scheduledScrollPage; | 121 - (size_t)scheduledScrollPage; |
| 123 | 122 |
| 124 @end | 123 @end |
| 125 | 124 |
| 126 #endif // UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ | 125 #endif // UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ |
| OLD | NEW |