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

Unified Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 55433002: Propagates the search result of start page to the app-list search box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
Index: chrome/browser/ui/app_list/start_page_service.h
diff --git a/chrome/browser/ui/app_list/start_page_service.h b/chrome/browser/ui/app_list/start_page_service.h
index f729ec022956db1ad42325cf0d15e14d6195ad6b..c967c4c72d81b2b9ab4eb99d1421b27ea91da5ba 100644
--- a/chrome/browser/ui/app_list/start_page_service.h
+++ b/chrome/browser/ui/app_list/start_page_service.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/strings/string16.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "content/public/browser/web_contents.h"
@@ -21,6 +22,7 @@ class Profile;
namespace app_list {
+class AppListModel;
class RecommendedApps;
// StartPageService collects data to be displayed in app list's start page
@@ -32,8 +34,11 @@ class StartPageService : public BrowserContextKeyedService {
// Gets the instance for the given profile.
static StartPageService* Get(Profile* profile);
+ void SetAppListModel(AppListModel* model);
+
content::WebContents* contents() { return contents_.get(); }
RecommendedApps* recommended_apps() { return recommended_apps_.get(); }
+ void OnSearch(const base::string16& query);
private:
// A BrowserContextKeyedServiceFactory for this service.
@@ -55,6 +60,7 @@ class StartPageService : public BrowserContextKeyedService {
virtual void Shutdown() OVERRIDE;
Profile* profile_;
+ AppListModel* model_;
xiyuan 2013/11/01 04:24:12 I don't like to put the weak reference to model he
Jun Mukai 2013/11/01 17:25:24 Agreed, done. PTAL.
scoped_ptr<content::WebContents> contents_;
scoped_ptr<StartPageWebContentsDelegate> contents_delegate_;
scoped_ptr<ExitObserver> exit_observer_;
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698