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

Unified Diff: ui/base/events.h

Issue 10830293: Fixes bug where Env/RootWindow would cache the wrong button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 4 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
« no previous file with comments | « ui/base/event.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events.h
diff --git a/ui/base/events.h b/ui/base/events.h
index 2e158aeb79c8ca96e110bd2796d073792c08034d..2350badcd73f95f801703bcd021bbf49c4130c64 100644
--- a/ui/base/events.h
+++ b/ui/base/events.h
@@ -156,6 +156,10 @@ UI_EXPORT KeyboardCode KeyboardCodeFromNative(
// Returns true if the message is a mouse event.
UI_EXPORT bool IsMouseEvent(const base::NativeEvent& native_event);
+// Returns the flags of the button that changed during a press/release.
+UI_EXPORT int GetChangedMouseButtonFlagsFromNative(
+ const base::NativeEvent& native_event);
+
// Gets the mouse wheel offset from a native event.
UI_EXPORT int GetMouseWheelOffset(const base::NativeEvent& native_event);
« no previous file with comments | « ui/base/event.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698