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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ASH_CHROME_SHELL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/shelf/shelf_item_types.h" 10 #include "ash/shelf/shelf_item_types.h"
(...skipping 24 matching lines...) Expand all
35 class DisplayConfigurationObserver; 35 class DisplayConfigurationObserver;
36 } 36 }
37 #endif 37 #endif
38 38
39 class ChromeLauncherController; 39 class ChromeLauncherController;
40 40
41 class ChromeShellDelegate : public ash::ShellDelegate, 41 class ChromeShellDelegate : public ash::ShellDelegate,
42 public content::NotificationObserver { 42 public content::NotificationObserver {
43 public: 43 public:
44 ChromeShellDelegate(); 44 ChromeShellDelegate();
45 virtual ~ChromeShellDelegate(); 45 ~ChromeShellDelegate() override;
46 46
47 static ChromeShellDelegate* instance() { return instance_; } 47 static ChromeShellDelegate* instance() { return instance_; }
48 48
49 // ash::ShellDelegate overrides; 49 // ash::ShellDelegate overrides;
50 virtual bool IsFirstRunAfterBoot() const override; 50 bool IsFirstRunAfterBoot() const override;
51 virtual bool IsMultiProfilesEnabled() const override; 51 bool IsMultiProfilesEnabled() const override;
52 virtual bool IsIncognitoAllowed() const override; 52 bool IsIncognitoAllowed() const override;
53 virtual bool IsRunningInForcedAppMode() const override; 53 bool IsRunningInForcedAppMode() const override;
54 virtual bool IsMultiAccountEnabled() const override; 54 bool IsMultiAccountEnabled() const override;
55 virtual void PreInit() override; 55 void PreInit() override;
56 virtual void PreShutdown() override; 56 void PreShutdown() override;
57 virtual void Exit() override; 57 void Exit() override;
58 virtual keyboard::KeyboardControllerProxy* 58 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override;
59 CreateKeyboardControllerProxy() override; 59 void VirtualKeyboardActivated(bool activated) override;
60 virtual void VirtualKeyboardActivated(bool activated) override; 60 void AddVirtualKeyboardStateObserver(
61 virtual void AddVirtualKeyboardStateObserver(
62 ash::VirtualKeyboardStateObserver* observer) override; 61 ash::VirtualKeyboardStateObserver* observer) override;
63 virtual void RemoveVirtualKeyboardStateObserver( 62 void RemoveVirtualKeyboardStateObserver(
64 ash::VirtualKeyboardStateObserver* observer) override; 63 ash::VirtualKeyboardStateObserver* observer) override;
65 virtual content::BrowserContext* GetActiveBrowserContext() override; 64 content::BrowserContext* GetActiveBrowserContext() override;
66 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() override; 65 app_list::AppListViewDelegate* GetAppListViewDelegate() override;
67 virtual ash::ShelfDelegate* CreateShelfDelegate( 66 ash::ShelfDelegate* CreateShelfDelegate(ash::ShelfModel* model) override;
68 ash::ShelfModel* model) override; 67 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override;
69 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; 68 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override;
70 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; 69 ash::SessionStateDelegate* CreateSessionStateDelegate() override;
71 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() override; 70 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override;
72 virtual ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; 71 ash::NewWindowDelegate* CreateNewWindowDelegate() override;
73 virtual ash::NewWindowDelegate* CreateNewWindowDelegate() override; 72 ash::MediaDelegate* CreateMediaDelegate() override;
74 virtual ash::MediaDelegate* CreateMediaDelegate() override; 73 ui::MenuModel* CreateContextMenu(aura::Window* root,
75 virtual ui::MenuModel* CreateContextMenu( 74 ash::ShelfItemDelegate* item_delegate,
76 aura::Window* root, 75 ash::ShelfItem* item) override;
77 ash::ShelfItemDelegate* item_delegate, 76 ash::GPUSupport* CreateGPUSupport() override;
78 ash::ShelfItem* item) override; 77 base::string16 GetProductName() const override;
79 virtual ash::GPUSupport* CreateGPUSupport() override;
80 virtual base::string16 GetProductName() const override;
81 78
82 // content::NotificationObserver override: 79 // content::NotificationObserver override:
83 virtual void Observe(int type, 80 void Observe(int type,
84 const content::NotificationSource& source, 81 const content::NotificationSource& source,
85 const content::NotificationDetails& details) override; 82 const content::NotificationDetails& details) override;
86 83
87 private: 84 private:
88 void PlatformInit(); 85 void PlatformInit();
89 86
90 static ChromeShellDelegate* instance_; 87 static ChromeShellDelegate* instance_;
91 88
92 content::NotificationRegistrar registrar_; 89 content::NotificationRegistrar registrar_;
93 90
94 ChromeLauncherController* shelf_delegate_; 91 ChromeLauncherController* shelf_delegate_;
95 92
96 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_; 93 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_;
97 94
98 #if defined(OS_CHROMEOS) 95 #if defined(OS_CHROMEOS)
99 scoped_ptr<chromeos::DisplayConfigurationObserver> 96 scoped_ptr<chromeos::DisplayConfigurationObserver>
100 display_configuration_observer_; 97 display_configuration_observer_;
101 #endif 98 #endif
102 99
103 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 100 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
104 }; 101 };
105 102
106 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 103 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698