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

Side by Side Diff: athena/home/app_list_view_delegate.h

Issue 311113005: AppModelBuilder to athena. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
6 #define ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ 6 #define ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/app_list/app_list_view_delegate.h" 10 #include "ui/app_list/app_list_view_delegate.h"
11 11
12 namespace athena { 12 namespace athena {
13 class AppModelBuilder;
13 14
14 class AppListViewDelegate : public app_list::AppListViewDelegate { 15 class AppListViewDelegate : public app_list::AppListViewDelegate {
15 public: 16 public:
16 AppListViewDelegate(); 17 explicit AppListViewDelegate(AppModelBuilder* model_builder);
17 virtual ~AppListViewDelegate(); 18 virtual ~AppListViewDelegate();
18 19
19 private: 20 private:
20 void PopulateApps();
21
22 // Overridden from app_list::AppListViewDelegate: 21 // Overridden from app_list::AppListViewDelegate:
23 virtual bool ForceNativeDesktop() const OVERRIDE; 22 virtual bool ForceNativeDesktop() const OVERRIDE;
24 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE; 23 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE;
25 virtual app_list::AppListModel* GetModel() OVERRIDE; 24 virtual app_list::AppListModel* GetModel() OVERRIDE;
26 virtual app_list::SpeechUIModel* GetSpeechUI() OVERRIDE; 25 virtual app_list::SpeechUIModel* GetSpeechUI() OVERRIDE;
27 virtual void GetShortcutPathForApp( 26 virtual void GetShortcutPathForApp(
28 const std::string& app_id, 27 const std::string& app_id,
29 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; 28 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE;
30 virtual void StartSearch() OVERRIDE; 29 virtual void StartSearch() OVERRIDE;
31 virtual void StopSearch() OVERRIDE; 30 virtual void StopSearch() OVERRIDE;
(...skipping 23 matching lines...) Expand all
55 scoped_ptr<app_list::AppListModel> model_; 54 scoped_ptr<app_list::AppListModel> model_;
56 scoped_ptr<app_list::SpeechUIModel> speech_ui_; 55 scoped_ptr<app_list::SpeechUIModel> speech_ui_;
57 Users users_; 56 Users users_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); 58 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate);
60 }; 59 };
61 60
62 } // namespace athena 61 } // namespace athena
63 62
64 #endif // ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_ 63 #endif // ATHENA_HOME_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « athena/content/public/content_app_model_builder.h ('k') | athena/home/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698