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

Unified Diff: athena/home/app_list_view_delegate.h

Issue 317163004: Replace the HomeCard by the AppList in Athena (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « athena/home/DEPS ('k') | athena/home/app_list_view_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/app_list_view_delegate.h
diff --git a/athena/home/app_list_view_delegate.h b/athena/home/app_list_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..4e044cff457d5568e710d963ab5e90de3f66377e
--- /dev/null
+++ b/athena/home/app_list_view_delegate.h
@@ -0,0 +1,64 @@
+// Copyright 2014 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 ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
+#define ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/app_list/app_list_view_delegate.h"
+
+namespace athena {
+
+class AppListViewDelegate : public app_list::AppListViewDelegate {
+ public:
+ AppListViewDelegate();
+ virtual ~AppListViewDelegate();
+
+ private:
+ void PopulateApps();
+
+ // Overridden from app_list::AppListViewDelegate:
+ virtual bool ForceNativeDesktop() const OVERRIDE;
+ virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE;
+ virtual app_list::AppListModel* GetModel() OVERRIDE;
+ virtual app_list::SpeechUIModel* GetSpeechUI() OVERRIDE;
+ virtual void GetShortcutPathForApp(
+ const std::string& app_id,
+ const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE;
+ virtual void StartSearch() OVERRIDE;
+ virtual void StopSearch() OVERRIDE;
+ virtual void OpenSearchResult(app_list::SearchResult* result,
+ bool auto_launch,
+ int event_flags) OVERRIDE;
+ virtual void InvokeSearchResultAction(app_list::SearchResult* result,
+ int action_index,
+ int event_flags) OVERRIDE;
+ virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE;
+ virtual void AutoLaunchCanceled() OVERRIDE;
+ virtual void ViewInitialized() OVERRIDE;
+ virtual void Dismiss() OVERRIDE;
+ virtual void ViewClosing() OVERRIDE;
+ virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;
+ virtual void OpenSettings() OVERRIDE;
+ virtual void OpenHelp() OVERRIDE;
+ virtual void OpenFeedback() OVERRIDE;
+ virtual void ToggleSpeechRecognition() OVERRIDE;
+ virtual void ShowForProfileByPath(
+ const base::FilePath& profile_path) OVERRIDE;
+ virtual views::View* CreateStartPageWebView(const gfx::Size& size) OVERRIDE;
+ virtual bool IsSpeechRecognitionEnabled() OVERRIDE;
+ virtual const Users& GetUsers() const OVERRIDE;
+ virtual bool ShouldCenterWindow() const OVERRIDE;
+
+ scoped_ptr<app_list::AppListModel> model_;
+ scoped_ptr<app_list::SpeechUIModel> speech_ui_;
+ Users users_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate);
+};
+
+} // namespace athena
+
+#endif // ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
« no previous file with comments | « athena/home/DEPS ('k') | athena/home/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698