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

Side by Side Diff: chrome/browser/ui/app_list/app_list_controller_delegate_impl.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 9 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
10 10
11 struct AppLaunchParams; 11 struct AppLaunchParams;
12 class AppListService; 12 class AppListService;
13 class Profile; 13 class Profile;
14 14
15 namespace base { 15 namespace base {
16 class FilePath; 16 class FilePath;
17 } 17 }
18 18
19 namespace extensions { 19 namespace extensions {
20 class Extension; 20 class Extension;
21 } 21 }
22 22
23 // Primary implementation of AppListControllerDelegate, used by non-Ash 23 // Primary implementation of AppListControllerDelegate, used by non-Ash
24 // platforms. 24 // platforms.
25 class AppListControllerDelegateImpl : public AppListControllerDelegate { 25 class AppListControllerDelegateImpl : public AppListControllerDelegate {
26 public: 26 public:
27 explicit AppListControllerDelegateImpl(AppListService* service); 27 explicit AppListControllerDelegateImpl(AppListService* service);
28 virtual ~AppListControllerDelegateImpl(); 28 ~AppListControllerDelegateImpl() override;
29 29
30 // AppListControllerDelegate overrides: 30 // AppListControllerDelegate overrides:
31 virtual void DismissView() override; 31 void DismissView() override;
32 virtual gfx::NativeWindow GetAppListWindow() override; 32 gfx::NativeWindow GetAppListWindow() override;
33 virtual gfx::ImageSkia GetWindowIcon() override; 33 gfx::ImageSkia GetWindowIcon() override;
34 virtual bool IsAppPinned(const std::string& extension_id) override; 34 bool IsAppPinned(const std::string& extension_id) override;
35 virtual void PinApp(const std::string& extension_id) override; 35 void PinApp(const std::string& extension_id) override;
36 virtual void UnpinApp(const std::string& extension_id) override; 36 void UnpinApp(const std::string& extension_id) override;
37 virtual Pinnable GetPinnable() override; 37 Pinnable GetPinnable() override;
38 virtual bool CanDoCreateShortcutsFlow() override; 38 bool CanDoCreateShortcutsFlow() override;
39 virtual void DoCreateShortcutsFlow(Profile* profile, 39 void DoCreateShortcutsFlow(Profile* profile,
40 const std::string& extension_id) override; 40 const std::string& extension_id) override;
41 virtual void CreateNewWindow(Profile* profile, bool incognito) override; 41 void CreateNewWindow(Profile* profile, bool incognito) override;
42 virtual void OpenURL(Profile* profile, 42 void OpenURL(Profile* profile,
43 const GURL& url, 43 const GURL& url,
44 ui::PageTransition transition, 44 ui::PageTransition transition,
45 WindowOpenDisposition disposition) override; 45 WindowOpenDisposition disposition) override;
46 virtual void ActivateApp(Profile* profile, 46 void ActivateApp(Profile* profile,
47 const extensions::Extension* extension, 47 const extensions::Extension* extension,
48 AppListSource source, 48 AppListSource source,
49 int event_flags) override; 49 int event_flags) override;
50 virtual void LaunchApp(Profile* profile, 50 void LaunchApp(Profile* profile,
51 const extensions::Extension* extension, 51 const extensions::Extension* extension,
52 AppListSource source, 52 AppListSource source,
53 int event_flags) override; 53 int event_flags) override;
54 virtual void ShowForProfileByPath( 54 void ShowForProfileByPath(const base::FilePath& profile_path) override;
55 const base::FilePath& profile_path) override; 55 bool ShouldShowUserIcon() override;
56 virtual bool ShouldShowUserIcon() override;
57 56
58 protected: 57 protected:
59 // Perform platform-specific adjustments of |params| before OpenApplication(). 58 // Perform platform-specific adjustments of |params| before OpenApplication().
60 virtual void FillLaunchParams(AppLaunchParams* params); 59 virtual void FillLaunchParams(AppLaunchParams* params);
61 60
62 private: 61 private:
63 void OnCloseCreateShortcutsPrompt(bool created); 62 void OnCloseCreateShortcutsPrompt(bool created);
64 63
65 AppListService* service_; 64 AppListService* service_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateImpl); 66 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateImpl);
68 }; 67 };
69 68
70 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_ 69 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698