Commit d62c2ff1 authored by yusukes@chromium.org's avatar yusukes@chromium.org

Initialize aura::LocatedEvent::root_location_ correctly.

BUG=none
TEST=try passed


Review URL: https://chromiumcodereview.appspot.com/10830087

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149308 0039d316-1c4b-4281-b951-d872f2087c98
parent 7e2d34d9
...@@ -119,7 +119,7 @@ LocatedEvent::LocatedEvent(ui::EventType type, ...@@ -119,7 +119,7 @@ LocatedEvent::LocatedEvent(ui::EventType type,
int flags) int flags)
: Event(type, flags), : Event(type, flags),
location_(location), location_(location),
root_location_(location) { root_location_(root_location) {
} }
void LocatedEvent::UpdateForRootTransform(const ui::Transform& root_transform) { void LocatedEvent::UpdateForRootTransform(const ui::Transform& root_transform) {
......
...@@ -61,7 +61,7 @@ TEST_F(CompoundEventFilterTest, TouchHidesCursor) { ...@@ -61,7 +61,7 @@ TEST_F(CompoundEventFilterTest, TouchHidesCursor) {
aura::client::SetCursorClient(root_window(), &cursor_client); aura::client::SetCursorClient(root_window(), &cursor_client);
MouseEvent mouse(ui::ET_MOUSE_MOVED, gfx::Point(10, 10), MouseEvent mouse(ui::ET_MOUSE_MOVED, gfx::Point(10, 10),
gfx::Point(15, 15), 0); gfx::Point(10, 10), 0);
root_window()->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse); root_window()->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse);
EXPECT_TRUE(cursor_client.IsCursorVisible()); EXPECT_TRUE(cursor_client.IsCursorVisible());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment