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

Unified Diff: athena/home/app_list_view_delegate.h

Issue 306083005: Replace the HomeCard by the AppList in Athena. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 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: 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..aa04b22b564ad6f5dc162332fe3b7f0acb261ddd
--- /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/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;
xiyuan 2014/06/02 17:24:34 nit: #include "base/macros.h" for OVERRIDE
Jun Mukai 2014/06/02 17:37:37 Done.
+ virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE;
+ virtual app_list::AppListModel* GetModel() OVERRIDE;
+ virtual app_list::SigninDelegate* GetSigninDelegate() 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 content::WebContents* GetStartPageContents() OVERRIDE;
+ virtual content::WebContents* GetSpeechRecognitionContents() 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_

Powered by Google App Engine
This is Rietveld 408576698