summaryrefslogtreecommitdiffstats
path: root/ui/base/events
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-20 07:15:21 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-20 07:15:21 +0000
commitb702d054bc37c5b1ef65e18798ba8597d904aaa9 (patch)
treecdf92d7436fff2c2e6dcf376140ab9d394d7f4fe /ui/base/events
parent002db8e3dc0de4a5bd9bb647e8e241a528253d14 (diff)
downloadchromium_src-b702d054bc37c5b1ef65e18798ba8597d904aaa9.zip
chromium_src-b702d054bc37c5b1ef65e18798ba8597d904aaa9.tar.gz
chromium_src-b702d054bc37c5b1ef65e18798ba8597d904aaa9.tar.bz2
Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux.
Once this CL is landed, event handlers do not need to be aware of native screen coordinates even when passive grab is taken. All the conversions can be done only by way of screen coordinate. This CL depends on http://codereview.chromium.org/10911342/. BUG=148686,148761,146435,146072 Review URL: https://chromiumcodereview.appspot.com/10948020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/events')
-rw-r--r--ui/base/events/event.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/base/events/event.h b/ui/base/events/event.h
index 4d8ad63..2b9d340 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_; }