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

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: Rebase 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; 86 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
87 int GetSystemTrayMenuWidth() override; 87 int GetSystemTrayMenuWidth() override;
88 void ActiveUserWasChanged() override; 88 void ActiveUserWasChanged() override;
89 bool IsSearchKeyMappedToCapsLock() override; 89 bool IsSearchKeyMappedToCapsLock() override;
90 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( 90 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate(
91 const std::string& user_id) override; 91 const std::string& user_id) override;
92 void AddCustodianInfoTrayObserver( 92 void AddCustodianInfoTrayObserver(
93 ash::CustodianInfoTrayObserver* observer) override; 93 ash::CustodianInfoTrayObserver* observer) override;
94 void RemoveCustodianInfoTrayObserver( 94 void RemoveCustodianInfoTrayObserver(
95 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;
96 102
97 private: 103 private:
98 ash::SystemTrayNotifier* GetSystemTrayNotifier(); 104 ash::SystemTrayNotifier* GetSystemTrayNotifier();
99 105
100 void UpdateClockType(); 106 void UpdateClockType();
101 107
102 // content::NotificationObserver implementation. 108 // content::NotificationObserver implementation.
103 void Observe(int type, 109 void Observe(int type,
104 const content::NotificationSource& source, 110 const content::NotificationSource& source,
105 const content::NotificationDetails& details) override; 111 const content::NotificationDetails& details) override;
106 112
107 scoped_ptr<content::NotificationRegistrar> registrar_; 113 scoped_ptr<content::NotificationRegistrar> registrar_;
108 base::HourClockType clock_type_; 114 base::HourClockType clock_type_;
109 115
110 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon); 116 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon);
111 }; 117 };
112 118
113 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ 119 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698