| OLD | NEW |
| 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_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ | 5 #ifndef ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ |
| 6 #define ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ | 6 #define ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 11 | 11 |
| 12 namespace athena { | 12 namespace athena { |
| 13 | 13 |
| 14 class AppListControllerDelegateAthena : public AppListControllerDelegate { | 14 class AppListControllerDelegateAthena : public AppListControllerDelegate { |
| 15 public: | 15 public: |
| 16 AppListControllerDelegateAthena(); | 16 AppListControllerDelegateAthena(); |
| 17 virtual ~AppListControllerDelegateAthena(); | 17 ~AppListControllerDelegateAthena() override; |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 // AppListControllerDelegate overrides: | 20 // AppListControllerDelegate overrides: |
| 21 virtual void DismissView() override; | 21 void DismissView() override; |
| 22 virtual gfx::NativeWindow GetAppListWindow() override; | 22 gfx::NativeWindow GetAppListWindow() override; |
| 23 virtual gfx::Rect GetAppListBounds() override; | 23 gfx::Rect GetAppListBounds() override; |
| 24 virtual gfx::ImageSkia GetWindowIcon() override; | 24 gfx::ImageSkia GetWindowIcon() override; |
| 25 virtual bool IsAppPinned(const std::string& extension_id) override; | 25 bool IsAppPinned(const std::string& extension_id) override; |
| 26 virtual void PinApp(const std::string& extension_id) override; | 26 void PinApp(const std::string& extension_id) override; |
| 27 virtual void UnpinApp(const std::string& extension_id) override; | 27 void UnpinApp(const std::string& extension_id) override; |
| 28 virtual Pinnable GetPinnable() override; | 28 Pinnable GetPinnable() override; |
| 29 virtual void OnShowChildDialog() override; | 29 void OnShowChildDialog() override; |
| 30 virtual void OnCloseChildDialog() override; | 30 void OnCloseChildDialog() override; |
| 31 virtual bool CanDoCreateShortcutsFlow() override; | 31 bool CanDoCreateShortcutsFlow() override; |
| 32 virtual void DoCreateShortcutsFlow(Profile* profile, | 32 void DoCreateShortcutsFlow(Profile* profile, |
| 33 const std::string& extension_id) override; | 33 const std::string& extension_id) override; |
| 34 virtual void CreateNewWindow(Profile* profile, bool incognito) override; | 34 void CreateNewWindow(Profile* profile, bool incognito) override; |
| 35 virtual void OpenURL(Profile* profile, | 35 void OpenURL(Profile* profile, |
| 36 const GURL& url, | 36 const GURL& url, |
| 37 ui::PageTransition transition, | 37 ui::PageTransition transition, |
| 38 WindowOpenDisposition disposition) override; | 38 WindowOpenDisposition disposition) override; |
| 39 virtual void ActivateApp(Profile* profile, | 39 void ActivateApp(Profile* profile, |
| 40 const extensions::Extension* extension, | 40 const extensions::Extension* extension, |
| 41 AppListSource source, | 41 AppListSource source, |
| 42 int event_flags) override; | 42 int event_flags) override; |
| 43 virtual void LaunchApp(Profile* profile, | 43 void LaunchApp(Profile* profile, |
| 44 const extensions::Extension* extension, | 44 const extensions::Extension* extension, |
| 45 AppListSource source, | 45 AppListSource source, |
| 46 int event_flags) override; | 46 int event_flags) override; |
| 47 virtual void ShowForProfileByPath( | 47 void ShowForProfileByPath(const base::FilePath& profile_path) override; |
| 48 const base::FilePath& profile_path) override; | 48 bool ShouldShowUserIcon() override; |
| 49 virtual bool ShouldShowUserIcon() override; | |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAthena); | 50 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAthena); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace athena | 53 } // namespace athena |
| 55 | 54 |
| 56 #endif // ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ | 55 #endif // ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_ |
| OLD | NEW |