Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ | |
| 6 #define ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "ui/app_list/app_list_view_delegate.h" | |
| 11 | |
| 12 namespace athena { | |
| 13 | |
| 14 class AppListViewDelegate : public app_list::AppListViewDelegate { | |
| 15 public: | |
| 16 AppListViewDelegate(); | |
| 17 virtual ~AppListViewDelegate(); | |
| 18 | |
| 19 private: | |
| 20 void PopulateApps(); | |
| 21 | |
| 22 // Overridden from app_list::AppListViewDelegate: | |
| 23 virtual bool ForceNativeDesktop() const OVERRIDE; | |
| 24 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE; | |
| 25 virtual app_list::AppListModel* GetModel() OVERRIDE; | |
| 26 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?
| |
| 27 virtual app_list::SpeechUIModel* GetSpeechUI() OVERRIDE; | |
| 28 virtual void GetShortcutPathForApp( | |
| 29 const std::string& app_id, | |
| 30 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | |
| 31 virtual void StartSearch() OVERRIDE; | |
| 32 virtual void StopSearch() OVERRIDE; | |
| 33 virtual void OpenSearchResult(app_list::SearchResult* result, | |
| 34 bool auto_launch, | |
| 35 int event_flags) OVERRIDE; | |
| 36 virtual void InvokeSearchResultAction(app_list::SearchResult* result, | |
| 37 int action_index, | |
| 38 int event_flags) OVERRIDE; | |
| 39 virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE; | |
| 40 virtual void AutoLaunchCanceled() OVERRIDE; | |
| 41 virtual void ViewInitialized() OVERRIDE; | |
| 42 virtual void Dismiss() OVERRIDE; | |
| 43 virtual void ViewClosing() OVERRIDE; | |
| 44 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | |
| 45 virtual void OpenSettings() OVERRIDE; | |
| 46 virtual void OpenHelp() OVERRIDE; | |
| 47 virtual void OpenFeedback() OVERRIDE; | |
| 48 virtual void ToggleSpeechRecognition() OVERRIDE; | |
| 49 virtual void ShowForProfileByPath( | |
| 50 const base::FilePath& profile_path) OVERRIDE; | |
| 51 virtual content::WebContents* GetStartPageContents() OVERRIDE; | |
| 52 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; | |
| 53 virtual const Users& GetUsers() const OVERRIDE; | |
| 54 virtual bool ShouldCenterWindow() const OVERRIDE; | |
| 55 | |
| 56 scoped_ptr<app_list::AppListModel> model_; | |
| 57 scoped_ptr<app_list::SpeechUIModel> speech_ui_; | |
| 58 Users users_; | |
| 59 | |
| 60 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | |
| 61 }; | |
| 62 | |
| 63 } // namespace athena | |
| 64 | |
| 65 #endif // ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ | |
| OLD | NEW |