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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_view_delegate.h

Issue 10828151: chrome: Copy app_list files from views/ to ash/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ash/app_list/app_list_view_delegate.h
diff --git a/chrome/browser/ui/ash/app_list/app_list_view_delegate.h b/chrome/browser/ui/ash/app_list/app_list_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..7dd72dae0ed62db16ddcba81c73848161a8078c7
--- /dev/null
+++ b/chrome/browser/ui/ash/app_list/app_list_view_delegate.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 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_ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
+#define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/app_list/app_list_view_delegate.h"
+
+class AppsModelBuilder;
+class SearchBuilder;
+
+class AppListViewDelegate : public app_list::AppListViewDelegate {
+ public:
+ AppListViewDelegate();
+ virtual ~AppListViewDelegate();
+
+ private:
+ // Overridden from app_list::AppListViewDelegate:
+ virtual void SetModel(app_list::AppListModel* model) OVERRIDE;
+ virtual void ActivateAppListItem(app_list::AppListItemModel* item,
+ int event_flags) OVERRIDE;
+ virtual void StartSearch() OVERRIDE;
+ virtual void StopSearch() OVERRIDE;
+ virtual void OpenSearchResult(const app_list::SearchResult& result,
+ int event_flags) OVERRIDE;
+ virtual void Close() OVERRIDE;
+
+ scoped_ptr<AppsModelBuilder> apps_builder_;
+ scoped_ptr<SearchBuilder> search_builder_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698