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

Unified Diff: chrome/browser/ui/app_list/search/search_webstore_result.h

Issue 15342003: app_list: Add web store search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and address nits in #3 Created 7 years, 7 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/search/search_webstore_result.h
diff --git a/chrome/browser/ui/app_list/search/search_webstore_result.h b/chrome/browser/ui/app_list/search/search_webstore_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..d577c750d426f4385ca8f52e86d6613e3c4ba67a
--- /dev/null
+++ b/chrome/browser/ui/app_list/search/search_webstore_result.h
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
+#define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "chrome/browser/ui/app_list/search/chrome_search_result.h"
+#include "googleurl/src/gurl.h"
+
+class Profile;
+
+namespace app_list {
+
+// A "search in webstore" result.
+class SearchWebstoreResult : public ChromeSearchResult {
+ public:
+ SearchWebstoreResult(Profile* profile, const std::string& query);
+ virtual ~SearchWebstoreResult();
+
+ // ChromeSearchResult overides:
+ virtual void Open(int event_flags) OVERRIDE;
+ virtual void InvokeAction(int action_index, int event_flags) OVERRIDE;
+ virtual scoped_ptr<ChromeSearchResult> Duplicate() OVERRIDE;
+
+ private:
+ Profile* profile_;
+ const std::string query_;
+ GURL launch_url_;
+
+ DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult);
+};
+
+} // namespace app_list
+
+#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
« no previous file with comments | « chrome/browser/ui/app_list/search/search_controller.cc ('k') | chrome/browser/ui/app_list/search/search_webstore_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698