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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_handler.h

Issue 317783012: Pass in the time of the user's last activity timestamp with the NET_ACTIVE_WINDOW event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/x11_desktop_handler.h
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.h b/ui/views/widget/desktop_aura/x11_desktop_handler.h
index ec5a3e44b43e8dd6a8ba85d855a9eddbf917a9a1..56b2084e7a51996f1427652b170020c6a80bd50c 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.h
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.h
@@ -30,6 +30,15 @@ class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher,
// Returns the singleton handler.
static X11DesktopHandler* get();
+ // Gets/sets the X11 server time of the most recent mouse click, touch or
+ // key press on a Chrome window.
+ int wm_user_time_ms() const {
+ return wm_user_time_ms_;
+ }
+ void set_wm_user_time_ms(unsigned long time_ms) {
+ wm_user_time_ms_ = time_ms;
+ }
+
// Sends a request to the window manager to activate |window|.
// This method should only be called if the window is already mapped.
void ActivateWindow(::Window window);
@@ -63,6 +72,10 @@ class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher,
// The native root window.
::Window x_root_window_;
+ // The X11 server time of the most recent mouse click, touch, or key press
+ // on a Chrome window.
+ unsigned long wm_user_time_ms_;
+
// The activated window.
::Window current_window_;

Powered by Google App Engine
This is Rietveld 408576698