| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/apps/shaped_app_window_targeter.h" | 5 #include "chrome/browser/ui/views/apps/shaped_app_window_targeter.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" | 7 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" |
| 8 #include "ui/aura/test/aura_test_base.h" | 8 #include "ui/aura/test/aura_test_base.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_event_dispatcher.h" | 10 #include "ui/aura/window_event_dispatcher.h" |
| 11 #include "ui/views/controls/webview/webview.h" | 11 #include "ui/views/controls/webview/webview.h" |
| 12 #include "ui/wm/public/easy_resize_window_targeter.h" | 12 #include "ui/wm/core/easy_resize_window_targeter.h" |
| 13 | 13 |
| 14 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase { | 14 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase { |
| 15 public: | 15 public: |
| 16 ShapedAppWindowTargeterTest() | 16 ShapedAppWindowTargeterTest() |
| 17 : web_view_(NULL) { | 17 : web_view_(NULL) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 virtual ~ShapedAppWindowTargeterTest() {} | 20 virtual ~ShapedAppWindowTargeterTest() {} |
| 21 | 21 |
| 22 views::Widget* widget() { return widget_.get(); } | 22 views::Widget* widget() { return widget_.get(); } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // root_window() as its target. | 204 // root_window() as its target. |
| 205 ui::MouseEvent move(ui::ET_MOUSE_MOVED, | 205 ui::MouseEvent move(ui::ET_MOUSE_MOVED, |
| 206 gfx::Point(32, 37), gfx::Point(32, 37), | 206 gfx::Point(32, 37), gfx::Point(32, 37), |
| 207 ui::EF_NONE, ui::EF_NONE); | 207 ui::EF_NONE, ui::EF_NONE); |
| 208 ui::EventDispatchDetails details = | 208 ui::EventDispatchDetails details = |
| 209 event_processor()->OnEventFromSource(&move); | 209 event_processor()->OnEventFromSource(&move); |
| 210 ASSERT_FALSE(details.dispatcher_destroyed); | 210 ASSERT_FALSE(details.dispatcher_destroyed); |
| 211 EXPECT_EQ(root_window(), move.target()); | 211 EXPECT_EQ(root_window(), move.target()); |
| 212 } | 212 } |
| 213 } | 213 } |
| OLD | NEW |