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 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 @property(assign, nonatomic) id<AppsPaginationModelObserver> paginationObserver; | 54 @property(assign, nonatomic) id<AppsPaginationModelObserver> paginationObserver; |
55 | 55 |
56 + (void)setScrollAnimationDuration:(NSTimeInterval)duration; | 56 + (void)setScrollAnimationDuration:(NSTimeInterval)duration; |
57 | 57 |
58 // The amount the grid view has been extended to hold the sometimes present | 58 // The amount the grid view has been extended to hold the sometimes present |
59 // invisible scroller that allows for gesture scrolling. | 59 // invisible scroller that allows for gesture scrolling. |
60 + (CGFloat)scrollerPadding; | 60 + (CGFloat)scrollerPadding; |
61 | 61 |
| 62 // Whether the grid is configured with fewer rows than normal. |
| 63 + (BOOL)hasFewerRows; |
| 64 |
62 - (NSCollectionView*)collectionViewAtPageIndex:(size_t)pageIndex; | 65 - (NSCollectionView*)collectionViewAtPageIndex:(size_t)pageIndex; |
63 - (size_t)pageIndexForCollectionView:(NSCollectionView*)page; | 66 - (size_t)pageIndexForCollectionView:(NSCollectionView*)page; |
64 | 67 |
65 - (AppsGridViewItem*)itemAtIndex:(size_t)itemIndex; | 68 - (AppsGridViewItem*)itemAtIndex:(size_t)itemIndex; |
66 | 69 |
67 - (app_list::AppListModel*)model; | 70 - (app_list::AppListModel*)model; |
68 | 71 |
69 - (void)setDelegate:(app_list::AppListViewDelegate*)newDelegate; | 72 - (void)setDelegate:(app_list::AppListViewDelegate*)newDelegate; |
70 | 73 |
71 - (size_t)visiblePage; | 74 - (size_t)visiblePage; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 @end | 117 @end |
115 | 118 |
116 @interface AppsGridController(TestingAPI) | 119 @interface AppsGridController(TestingAPI) |
117 | 120 |
118 - (AppsCollectionViewDragManager*)dragManager; | 121 - (AppsCollectionViewDragManager*)dragManager; |
119 - (size_t)scheduledScrollPage; | 122 - (size_t)scheduledScrollPage; |
120 | 123 |
121 @end | 124 @end |
122 | 125 |
123 #endif // UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ | 126 #endif // UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ |
OLD | NEW |