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

Unified 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: Comments addressed. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 30f9369da4c20f5d6595bece34e53bc01aa6bdd4..d78ffdda9557388e028a16e817c6cd7a80a83925 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -15,6 +15,7 @@
#include "base/i18n/time_formatting.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
+#include "base/time.h"
#include "ui/gfx/image/image_skia.h"
namespace ash {
@@ -299,6 +300,14 @@ class SystemTrayDelegate {
virtual void SetVolumeControlDelegate(
scoped_ptr<VolumeControlDelegate> delegate) = 0;
+ // Returns the session start time, or a zero base::Time if no session start
+ // time is set.
+ virtual base::Time GetSessionStartTime() = 0;
+
+ // Returns the session length limit, or a zero base::TimeDelta if no session
+ // length limit is set.
+ virtual base::TimeDelta GetSessionLengthLimit() = 0;
+
// Creates a dummy delegate for testing.
static SystemTrayDelegate* CreateDummyDelegate();
};
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698