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_APP_LIST_VIEW_CONTROLLER_H_ | 5 #ifndef UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ |
6 #define UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ | 6 #define UI_APP_LIST_COCOA_APP_LIST_VIEW_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Subview of |backgroundView_| that slides out when search results are shown. | 45 // Subview of |backgroundView_| that slides out when search results are shown. |
46 base::scoped_nsobject<NSView> contentsView_; | 46 base::scoped_nsobject<NSView> contentsView_; |
47 | 47 |
48 scoped_ptr<app_list::AppListViewDelegate> delegate_; | 48 scoped_ptr<app_list::AppListViewDelegate> delegate_; |
49 scoped_ptr<app_list::AppListModelObserverBridge> | 49 scoped_ptr<app_list::AppListModelObserverBridge> |
50 app_list_model_observer_bridge_; | 50 app_list_model_observer_bridge_; |
51 BOOL showingSearchResults_; | 51 BOOL showingSearchResults_; |
52 } | 52 } |
53 | 53 |
| 54 @property(readonly, nonatomic) AppsSearchBoxController* |
| 55 searchBoxController; |
| 56 |
54 - (app_list::AppListViewDelegate*)delegate; | 57 - (app_list::AppListViewDelegate*)delegate; |
55 - (void)setDelegate:(scoped_ptr<app_list::AppListViewDelegate>)newDelegate; | 58 - (void)setDelegate:(scoped_ptr<app_list::AppListViewDelegate>)newDelegate; |
56 - (void)onSigninStatusChanged; | 59 - (void)onSigninStatusChanged; |
57 | 60 |
58 @end | 61 @end |
59 | 62 |
60 @interface AppListViewController (TestingAPI) | 63 @interface AppListViewController (TestingAPI) |
61 | 64 |
| 65 @property(nonatomic, readonly) BOOL showingSearchResults; |
| 66 |
62 - (AppsGridController*)appsGridController; | 67 - (AppsGridController*)appsGridController; |
63 - (NSSegmentedControl*)pagerControl; | 68 - (NSSegmentedControl*)pagerControl; |
64 - (NSView*)backgroundView; | 69 - (NSView*)backgroundView; |
65 | 70 |
66 @end | 71 @end |
67 | 72 |
68 #endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ | 73 #endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ |
OLD | NEW |