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

Side by Side Diff: ash/system/tray/default_system_tray_delegate.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
« no previous file with comments | « ash/system/date/date_default_view.cc ('k') | ash/system/tray/default_system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/system_tray_delegate.h" 9 #include "ash/system/tray/system_tray_delegate.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; 76 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
77 int GetSystemTrayMenuWidth() override; 77 int GetSystemTrayMenuWidth() override;
78 void ActiveUserWasChanged() override; 78 void ActiveUserWasChanged() override;
79 bool IsSearchKeyMappedToCapsLock() override; 79 bool IsSearchKeyMappedToCapsLock() override;
80 tray::UserAccountsDelegate* GetUserAccountsDelegate( 80 tray::UserAccountsDelegate* GetUserAccountsDelegate(
81 const std::string& user_id) override; 81 const std::string& user_id) override;
82 void AddCustodianInfoTrayObserver( 82 void AddCustodianInfoTrayObserver(
83 CustodianInfoTrayObserver* observer) override; 83 CustodianInfoTrayObserver* observer) override;
84 void RemoveCustodianInfoTrayObserver( 84 void RemoveCustodianInfoTrayObserver(
85 CustodianInfoTrayObserver* observer) override; 85 CustodianInfoTrayObserver* observer) override;
86 void AddShutdownPolicyObserver(ShutdownPolicyObserver* observer) override;
87 void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer) override;
88 void ShouldRebootOnShutdown(
89 const RebootOnShutdownCallback& callback) override;
86 90
87 private: 91 private:
88 bool bluetooth_enabled_; 92 bool bluetooth_enabled_;
89 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; 93 scoped_ptr<VolumeControlDelegate> volume_control_delegate_;
90 94
91 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); 95 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate);
92 }; 96 };
93 97
94 } // namespace ash 98 } // namespace ash
95 99
96 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 100 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/date/date_default_view.cc ('k') | ash/system/tray/default_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698