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

Unified Diff: ui/base/events/event.h

Issue 10948020: Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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/aura/root_window_host_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.h
diff --git a/ui/base/events/event.h b/ui/base/events/event.h
index 4d8ad639c59290f640fa7c7df64332aa806aed3f..2b9d340d724bc37ed0425cc661b14103894effa8 100644
--- a/ui/base/events/event.h
+++ b/ui/base/events/event.h
@@ -204,7 +204,11 @@ class UI_EXPORT LocatedEvent : public Event {
int x() const { return location_.x(); }
int y() const { return location_.y(); }
+ void set_location(const gfx::Point& location) { location_ = location; }
gfx::Point location() const { return location_; }
+ void set_root_location(const gfx::Point& root_location) {
+ root_location_ = root_location;
+ }
gfx::Point root_location() const { return root_location_; }
bool valid_system_location() const { return valid_system_location_; }
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698