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

Unified Diff: ui/views/widget/native_widget_aura_unittest.cc

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ShouldDescendIntoChildForEventHandling Created 8 years, 4 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/views/widget/native_widget_aura_unittest.cc
diff --git a/ui/views/widget/native_widget_aura_unittest.cc b/ui/views/widget/native_widget_aura_unittest.cc
index 594ebb382ec493c710f83ac2c3acca7226318c1d..8db1611a510cc4f4af6c03fb76fc5c7716470ae1 100644
--- a/ui/views/widget/native_widget_aura_unittest.cc
+++ b/ui/views/widget/native_widget_aura_unittest.cc
@@ -335,7 +335,7 @@ TEST_F(NativeWidgetAuraTest, PreferViewLayersToChildWindows) {
// Point is over |child|.
EXPECT_EQ(child->GetNativeWindow(),
parent->GetNativeWindow()->GetEventHandlerForPoint(
- gfx::Point(50, 50)));
+ gfx::Point(50, 50), ui::ET_MOUSE_ENTERED));
// Create a view with a layer and stack it at the top (above |child|).
views::View* view_with_layer = new views::View;
@@ -346,26 +346,26 @@ TEST_F(NativeWidgetAuraTest, PreferViewLayersToChildWindows) {
// Point is over |view_with_layer|, it should get the event.
EXPECT_EQ(parent->GetNativeWindow(),
parent->GetNativeWindow()->GetEventHandlerForPoint(
- gfx::Point(20, 20)));
+ gfx::Point(20, 20), ui::ET_MOUSE_ENTERED));
// Point is over |child|, it should get the event.
EXPECT_EQ(child->GetNativeWindow(),
parent->GetNativeWindow()->GetEventHandlerForPoint(
- gfx::Point(70, 70)));
+ gfx::Point(70, 70), ui::ET_MOUSE_ENTERED));
// Move |child| to the top and make sure it gets the event.
child->GetNativeWindow()->layer()->parent()->StackAtTop(
child->GetNativeWindow()->layer());
EXPECT_EQ(child->GetNativeWindow(),
parent->GetNativeWindow()->GetEventHandlerForPoint(
- gfx::Point(20, 20)));
+ gfx::Point(20, 20), ui::ET_MOUSE_ENTERED));
delete view_with_layer;
view_with_layer = NULL;
EXPECT_EQ(child->GetNativeWindow(),
parent->GetNativeWindow()->GetEventHandlerForPoint(
- gfx::Point(20, 20)));
+ gfx::Point(20, 20), ui::ET_MOUSE_ENTERED));
// Work around for bug in NativeWidgetAura.
// TODO: fix bug and remove this.

Powered by Google App Engine
This is Rietveld 408576698