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

Unified Diff: ui/aura/desktop.h

Issue 8526020: aura: Track mouse button state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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 | « ui/aura/aura.gyp ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop.h
diff --git a/ui/aura/desktop.h b/ui/aura/desktop.h
index 5f455ffccac0fd2bbf92c07d2c04a466b426c1ac..8ba752a5778a636f530016c4533eac1bbd2ceab2 100644
--- a/ui/aura/desktop.h
+++ b/ui/aura/desktop.h
@@ -122,6 +122,9 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate,
void AddObserver(DesktopObserver* observer);
void RemoveObserver(DesktopObserver* observer);
+ // Are any mouse buttons currently down?
+ bool IsMouseButtonDown() const;
+
// Capture -------------------------------------------------------------------
// Sets capture to the specified window.
@@ -192,6 +195,9 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate,
// Last location seen in a mouse event.
gfx::Point last_mouse_location_;
+ // ui::EventFlags containing the current state of the mouse buttons.
+ int mouse_button_flags_;
+
// Last cursor set. Used for testing.
gfx::NativeCursor last_cursor_;
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698