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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 11568036: Add countdown when session time is limited (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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 ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/system/power/power_supply_status.h" 12 #include "ash/system/power/power_supply_status.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/i18n/time_formatting.h" 15 #include "base/i18n/time_formatting.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/time.h"
18 #include "ui/gfx/image/image_skia.h" 19 #include "ui/gfx/image/image_skia.h"
19 20
20 namespace ash { 21 namespace ash {
21 22
22 struct ASH_EXPORT NetworkIconInfo { 23 struct ASH_EXPORT NetworkIconInfo {
23 NetworkIconInfo(); 24 NetworkIconInfo();
24 ~NetworkIconInfo(); 25 ~NetworkIconInfo();
25 26
26 bool connecting; 27 bool connecting;
27 bool connected; 28 bool connected;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Shows UI for changing proxy settings. 293 // Shows UI for changing proxy settings.
293 virtual void ChangeProxySettings() = 0; 294 virtual void ChangeProxySettings() = 0;
294 295
295 // Returns VolumeControlDelegate. 296 // Returns VolumeControlDelegate.
296 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0; 297 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0;
297 298
298 // Sets VolumeControlDelegate. 299 // Sets VolumeControlDelegate.
299 virtual void SetVolumeControlDelegate( 300 virtual void SetVolumeControlDelegate(
300 scoped_ptr<VolumeControlDelegate> delegate) = 0; 301 scoped_ptr<VolumeControlDelegate> delegate) = 0;
301 302
303 // Returns whether the session length is limited.
304 virtual bool GetSessionLengthLimited() = 0;
305
306 // Returns the remaining session time when the session length is limited.
307 virtual base::TimeDelta GetRemainingSessionTime() = 0;
308
302 // Creates a dummy delegate for testing. 309 // Creates a dummy delegate for testing.
303 static SystemTrayDelegate* CreateDummyDelegate(); 310 static SystemTrayDelegate* CreateDummyDelegate();
304 }; 311 };
305 312
306 } // namespace ash 313 } // namespace ash
307 314
308 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 315 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698