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

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

Issue 2148943002: mash: Create system tray display and rotation lock items via delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments, add rotation lock Created 4 years, 5 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_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ash::CustodianInfoTrayObserver* observer) override; 145 ash::CustodianInfoTrayObserver* observer) override;
146 void RemoveCustodianInfoTrayObserver( 146 void RemoveCustodianInfoTrayObserver(
147 ash::CustodianInfoTrayObserver* observer) override; 147 ash::CustodianInfoTrayObserver* observer) override;
148 void AddShutdownPolicyObserver( 148 void AddShutdownPolicyObserver(
149 ash::ShutdownPolicyObserver* observer) override; 149 ash::ShutdownPolicyObserver* observer) override;
150 void RemoveShutdownPolicyObserver( 150 void RemoveShutdownPolicyObserver(
151 ash::ShutdownPolicyObserver* observer) override; 151 ash::ShutdownPolicyObserver* observer) override;
152 void ShouldRebootOnShutdown( 152 void ShouldRebootOnShutdown(
153 const ash::RebootOnShutdownCallback& callback) override; 153 const ash::RebootOnShutdownCallback& callback) override;
154 ash::VPNDelegate* GetVPNDelegate() const override; 154 ash::VPNDelegate* GetVPNDelegate() const override;
155 std::unique_ptr<ash::SystemTrayItem> CreateDisplayTrayItem(
156 ash::SystemTray* tray) override;
157 std::unique_ptr<ash::SystemTrayItem> CreateRotationLockTrayItem(
158 ash::SystemTray* tray) override;
155 159
156 // Overridden from user_manager::UserManager::UserSessionStateObserver: 160 // Overridden from user_manager::UserManager::UserSessionStateObserver:
157 void UserAddedToSession(const user_manager::User* active_user) override; 161 void UserAddedToSession(const user_manager::User* active_user) override;
158 void ActiveUserChanged(const user_manager::User* active_user) override; 162 void ActiveUserChanged(const user_manager::User* active_user) override;
159 163
160 void UserChangedChildStatus(user_manager::User* user) override; 164 void UserChangedChildStatus(user_manager::User* user) override;
161 165
162 // browser tests need to call ShouldUse24HourClock(). 166 // browser tests need to call ShouldUse24HourClock().
163 bool GetShouldUse24HourClockForTesting() const; 167 bool GetShouldUse24HourClockForTesting() const;
164 168
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 318
315 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; 319 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_;
316 320
317 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 321 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
318 }; 322 };
319 323
320 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 324 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
321 325
322 } // namespace chromeos 326 } // namespace chromeos
323 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 327 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/test/test_system_tray_delegate.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698