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

Unified Diff: ui/app_list/cocoa/app_list_view_controller.mm

Issue 19460003: One-click install for the OSX App Launcher Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaner, more future-proof Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.h ('k') | ui/app_list/cocoa/apps_grid_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.h ('k') | ui/app_list/cocoa/apps_grid_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698