| 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;
|
| + 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_
|
|
|