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/memory/scoped_ptr.h" | |
| 9 #include "ui/app_list/app_list_view_delegate.h" | |
| 10 | |
| 11 namespace athena { | |
| 12 | |
| 13 class AppListViewDelegate : public app_list::AppListViewDelegate { | |
| 14 public: | |
| 15 AppListViewDelegate(); | |
| 16 virtual ~AppListViewDelegate(); | |
| 17 | |
| 18 private: | |
| 19 void PopulateApps(); | |
| 20 | |
| 21 // Overridden from app_list::AppListViewDelegate: | |
| 22 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.
| |
| 23 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE; | |
| 24 virtual app_list::AppListModel* GetModel() OVERRIDE; | |
| 25 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; | |
| 26 virtual app_list::SpeechUIModel* GetSpeechUI() OVERRIDE; | |
| 27 virtual void GetShortcutPathForApp( | |
| 28 const std::string& app_id, | |
| 29 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | |
| 30 virtual void StartSearch() OVERRIDE; | |
| 31 virtual void StopSearch() OVERRIDE; | |
| 32 virtual void OpenSearchResult(app_list::SearchResult* result, | |
| 33 bool auto_launch, | |
| 34 int event_flags) OVERRIDE; | |
| 35 virtual void InvokeSearchResultAction(app_list::SearchResult* result, | |
| 36 int action_index, | |
| 37 int event_flags) OVERRIDE; | |
| 38 virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE; | |
| 39 virtual void AutoLaunchCanceled() OVERRIDE; | |
| 40 virtual void ViewInitialized() OVERRIDE; | |
| 41 virtual void Dismiss() OVERRIDE; | |
| 42 virtual void ViewClosing() OVERRIDE; | |
| 43 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | |
| 44 virtual void OpenSettings() OVERRIDE; | |
| 45 virtual void OpenHelp() OVERRIDE; | |
| 46 virtual void OpenFeedback() OVERRIDE; | |
| 47 virtual void ToggleSpeechRecognition() OVERRIDE; | |
| 48 virtual void ShowForProfileByPath( | |
| 49 const base::FilePath& profile_path) OVERRIDE; | |
| 50 virtual content::WebContents* GetStartPageContents() OVERRIDE; | |
| 51 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; | |
| 52 virtual const Users& GetUsers() const OVERRIDE; | |
| 53 virtual bool ShouldCenterWindow() const OVERRIDE; | |
| 54 | |
| 55 scoped_ptr<app_list::AppListModel> model_; | |
| 56 scoped_ptr<app_list::SpeechUIModel> speech_ui_; | |
| 57 Users users_; | |
| 58 | |
| 59 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | |
| 60 }; | |
| 61 | |
| 62 } // namespace athena | |
| 63 | |
| 64 #endif // ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ | |
| OLD | NEW |