diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 19:54:16 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 19:54:16 +0000 |
commit | 53869dbba36edf76eec07499a5bb7b00f70ac509 (patch) | |
tree | 88819276d352532a9b3786417b6d3fb54b475722 /ui/base/events | |
parent | 839667d6754a9b4bd2a5b3dfd8b23752a643c343 (diff) | |
download | chromium_src-53869dbba36edf76eec07499a5bb7b00f70ac509.zip chromium_src-53869dbba36edf76eec07499a5bb7b00f70ac509.tar.gz chromium_src-53869dbba36edf76eec07499a5bb7b00f70ac509.tar.bz2 |
linux desktop aura: Write a minimal, fake implementation of SetCapture.
This makes menu close when you click on another chrome window. (It already
worked when you clicked on a non-chrome window since the activation chagnge
closed the menu.)
Along the way:
- DesktopRootWindowHostLinux now does some minimal event redirection.
- Fix aura::Event so converting the event |location| also converts the
|root_location|.
- Use ScreenPositionClient as the implementation of
Window::ConvertPointToTarget; it's wrong outside of a specific case in
chromeos.
BUG=146077
Review URL: https://chromiumcodereview.appspot.com/11184047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/events')
-rw-r--r-- | ui/base/events/event.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc index f14a88b..604a239 100644 --- a/ui/base/events/event.cc +++ b/ui/base/events/event.cc @@ -147,8 +147,6 @@ LocatedEvent::LocatedEvent(EventType type, void LocatedEvent::UpdateForRootTransform( const gfx::Transform& root_transform) { // Transform has to be done at root level. - DCHECK_EQ(root_location_.x(), location_.x()); - DCHECK_EQ(root_location_.y(), location_.y()); gfx::Point3f p(location_); root_transform.TransformPointReverse(p); root_location_ = location_ = p.AsPoint(); |