Index: ui/base/user_activity/user_activity_detector.h |
diff --git a/ui/base/user_activity/user_activity_detector.h b/ui/base/user_activity/user_activity_detector.h |
index a480bedd28ecd58557ee1ee64755e37d3b3e0062..f2f68897175bac509db84993e54c19348188e66e 100644 |
--- a/ui/base/user_activity/user_activity_detector.h |
+++ b/ui/base/user_activity/user_activity_detector.h |
@@ -34,6 +34,7 @@ class UI_BASE_EXPORT UserActivityDetector : public ui::PlatformEventObserver { |
static UserActivityDetector* Get(); |
base::TimeTicks last_activity_time() const { return last_activity_time_; } |
+ std::string last_activity_name() const { return last_activity_name_; } |
void set_now_for_test(base::TimeTicks now) { now_for_test_ = now; } |
@@ -67,6 +68,9 @@ class UI_BASE_EXPORT UserActivityDetector : public ui::PlatformEventObserver { |
// Last time at which user activity was observed. |
base::TimeTicks last_activity_time_; |
+ // Name of the last user activity event. |
+ std::string last_activity_name_; |
+ |
// Last time at which we notified observers that the user was active. |
base::TimeTicks last_observer_notification_time_; |