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..f7a8dc5c1879029a59964eee979f5e042d6d0662 |
--- /dev/null |
+++ b/athena/home/app_list_view_delegate.h |
@@ -0,0 +1,65 @@ |
+// 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::SigninDelegate* GetSigninDelegate() OVERRIDE; |
benwells
2014/06/02 23:17:47
Note the SigninDelegate is about to disappear.
Jun Mukai
2014/06/03 00:21:50
Is there any ongoing CL or is that a plan for now?
|
+ 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_ |