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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_common.h

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced scope of CL (ash only now, removed webui changes) Created 5 years, 11 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 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 CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/system/tray/system_tray_delegate.h" 10 #include "ash/system/tray/system_tray_delegate.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void ShowChromeSlow() override; 52 void ShowChromeSlow() override;
53 bool ShouldShowDisplayNotification() override; 53 bool ShouldShowDisplayNotification() override;
54 void ShowIMESettings() override; 54 void ShowIMESettings() override;
55 void ShowHelp() override; 55 void ShowHelp() override;
56 void ShowAccessibilityHelp() override; 56 void ShowAccessibilityHelp() override;
57 void ShowAccessibilitySettings() override; 57 void ShowAccessibilitySettings() override;
58 void ShowPublicAccountInfo() override; 58 void ShowPublicAccountInfo() override;
59 void ShowSupervisedUserInfo() override; 59 void ShowSupervisedUserInfo() override;
60 void ShowEnterpriseInfo() override; 60 void ShowEnterpriseInfo() override;
61 void ShowUserLogin() override; 61 void ShowUserLogin() override;
62 void ShutDown() override;
63 void SignOut() override; 62 void SignOut() override;
64 void RequestLockScreen() override; 63 void RequestLockScreen() override;
65 void RequestRestartForUpdate() override; 64 void RequestRestartForUpdate() override;
66 void GetAvailableBluetoothDevices(ash::BluetoothDeviceList* list) override; 65 void GetAvailableBluetoothDevices(ash::BluetoothDeviceList* list) override;
67 void BluetoothStartDiscovering() override; 66 void BluetoothStartDiscovering() override;
68 void BluetoothStopDiscovering() override; 67 void BluetoothStopDiscovering() override;
69 void ConnectToBluetoothDevice(const std::string& address) override; 68 void ConnectToBluetoothDevice(const std::string& address) override;
70 bool IsBluetoothDiscovering() override; 69 bool IsBluetoothDiscovering() override;
71 void GetCurrentIME(ash::IMEInfo* info) override; 70 void GetCurrentIME(ash::IMEInfo* info) override;
72 void GetAvailableIMEList(ash::IMEInfoList* list) override; 71 void GetAvailableIMEList(ash::IMEInfoList* list) override;
(...skipping 14 matching lines...) Expand all
87 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; 86 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
88 int GetSystemTrayMenuWidth() override; 87 int GetSystemTrayMenuWidth() override;
89 void ActiveUserWasChanged() override; 88 void ActiveUserWasChanged() override;
90 bool IsSearchKeyMappedToCapsLock() override; 89 bool IsSearchKeyMappedToCapsLock() override;
91 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( 90 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate(
92 const std::string& user_id) override; 91 const std::string& user_id) override;
93 void AddCustodianInfoTrayObserver( 92 void AddCustodianInfoTrayObserver(
94 ash::CustodianInfoTrayObserver* observer) override; 93 ash::CustodianInfoTrayObserver* observer) override;
95 void RemoveCustodianInfoTrayObserver( 94 void RemoveCustodianInfoTrayObserver(
96 ash::CustodianInfoTrayObserver* observer) override; 95 ash::CustodianInfoTrayObserver* observer) override;
96 void AddShutdownPolicyObserver(
97 ash::ShutdownPolicyObserver* observer) override;
98 void RemoveShutdownPolicyObserver(
99 ash::ShutdownPolicyObserver* observer) override;
100 void ShouldRebootOnShutdown(
101 const ash::RebootOnShutdownCallback& callback) override;
97 102
98 private: 103 private:
99 ash::SystemTrayNotifier* GetSystemTrayNotifier(); 104 ash::SystemTrayNotifier* GetSystemTrayNotifier();
100 105
101 void UpdateClockType(); 106 void UpdateClockType();
102 107
103 // content::NotificationObserver implementation. 108 // content::NotificationObserver implementation.
104 void Observe(int type, 109 void Observe(int type,
105 const content::NotificationSource& source, 110 const content::NotificationSource& source,
106 const content::NotificationDetails& details) override; 111 const content::NotificationDetails& details) override;
107 112
108 scoped_ptr<content::NotificationRegistrar> registrar_; 113 scoped_ptr<content::NotificationRegistrar> registrar_;
109 base::HourClockType clock_type_; 114 base::HourClockType clock_type_;
110 115
111 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon); 116 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon);
112 }; 117 };
113 118
114 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ 119 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698