| Index: ui/app_list/cocoa/app_list_view_controller.mm
|
| diff --git a/ui/app_list/cocoa/app_list_view_controller.mm b/ui/app_list/cocoa/app_list_view_controller.mm
|
| index ad73540f6e9b4b501e00773ad7e603dc98c11950..1db52bd041bc7fa17b76ffdaf4adcdcf892362ed 100644
|
| --- a/ui/app_list/cocoa/app_list_view_controller.mm
|
| +++ b/ui/app_list/cocoa/app_list_view_controller.mm
|
| @@ -138,6 +138,10 @@ void AppListModelObserverBridge::OnProfilesChanged() {
|
| return appsSearchBoxController_;
|
| }
|
|
|
| +- (AppsSearchResultsController*)appsSearchResultsController {
|
| + return appsSearchResultsController_;
|
| +}
|
| +
|
| - (BOOL)showingSearchResults {
|
| return showingSearchResults_;
|
| }
|
| @@ -269,6 +273,10 @@ void AppListModelObserverBridge::OnProfilesChanged() {
|
| return [pagerControl_ findAndHighlightSegmentAtLocation:locationInWindow];
|
| }
|
|
|
| +- (void)ensureAppsPagesVisible {
|
| + [appsSearchBoxController_ clearSearch];
|
| +}
|
| +
|
| - (app_list::SearchBoxModel*)searchBoxModel {
|
| app_list::AppListModel* appListModel = [appsGridController_ model];
|
| return appListModel ? appListModel->search_box() : NULL;
|
| @@ -329,6 +337,15 @@ void AppListModelObserverBridge::OnProfilesChanged() {
|
| [self modelTextDidChange];
|
| }
|
|
|
| +- (void)invokeResultAction:(app_list::SearchResult*)result
|
| + atIndex:(int)actionIndex {
|
| + if (delegate_) {
|
| + delegate_->InvokeSearchResultAction(result,
|
| + actionIndex,
|
| + 0 /* event flags */);
|
| + }
|
| +}
|
| +
|
| - (void)onProfilesChanged {
|
| [appsSearchBoxController_ rebuildMenu];
|
| app_list::SigninDelegate* signinDelegate =
|
|
|