| Index: ash/shelf/shelf_widget_unittest.cc
|
| diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
|
| index 69e43154515759ee46e5f8125d6427f56cdc8e5e..2e8941afa719b062ec71bc5f0d8cf8c545dc6899 100644
|
| --- a/ash/shelf/shelf_widget_unittest.cc
|
| +++ b/ash/shelf/shelf_widget_unittest.cc
|
| @@ -214,8 +214,9 @@ TEST_F(ShelfWidgetTest, ShelfEdgeOverlappingWindowHitTestMouse) {
|
| gfx::Rect widget_bounds = widget->GetWindowBoundsInScreen();
|
| EXPECT_TRUE(widget_bounds.Intersects(shelf_bounds));
|
|
|
| - ui::EventTarget* root = widget->GetNativeWindow()->GetRootWindow();
|
| - ui::EventTargeter* targeter = root->GetEventTargeter();
|
| + aura::Window* root = widget->GetNativeWindow()->GetRootWindow();
|
| + ui::EventTargeter* targeter =
|
| + root->GetHost()->dispatcher()->GetDefaultEventTargeter();
|
| {
|
| // Create a mouse-event targeting the top of the shelf widget. The
|
| // window-targeter should find |widget| as the target (instead of the
|
| @@ -290,8 +291,9 @@ TEST_F(ShelfWidgetTest, HiddenShelfHitTestTouch) {
|
| widget->Init(params);
|
| widget->Show();
|
|
|
| - ui::EventTarget* root = shelf_widget->GetNativeWindow()->GetRootWindow();
|
| - ui::EventTargeter* targeter = root->GetEventTargeter();
|
| + aura::Window* root = shelf_widget->GetNativeWindow()->GetRootWindow();
|
| + ui::EventTargeter* targeter =
|
| + root->GetHost()->dispatcher()->GetDefaultEventTargeter();
|
| // Touch just over the shelf. Since the shelf is visible, the window-targeter
|
| // should not find the shelf as the target.
|
| {
|
|
|