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

Unified Diff: ui/aura/event.h

Issue 10388141: Full-screen Magnifier: Support warping the cursor on the edge (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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/aura/event.h
diff --git a/ui/aura/event.h b/ui/aura/event.h
index da2788524d0154170086c79819dd470c7e8d14d0..057b269eca6756f727725f045cadc51c3410c2a8 100644
--- a/ui/aura/event.h
+++ b/ui/aura/event.h
@@ -171,6 +171,9 @@ class AURA_EXPORT MouseEvent : public LocatedEvent {
// Set the click count for a mousedown message. Can be 1, 2 or 3.
void SetClickCount(int click_count);
+ // Returns the type of this event has location or not.
+ bool HasLocation() { return type() != ui::ET_MOUSE_CAPTURE_CHANGED; }
sky 2012/05/16 15:40:48 I don't think its worth adding this.
yoshiki 2012/05/17 17:19:32 Done.
+
private:
gfx::Point root_location_;

Powered by Google App Engine
This is Rietveld 408576698