| 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 "apps/ui/views/app_window_frame_view.h" | 7 #include "apps/ui/views/app_window_frame_view.h" |
| 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" |
| 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h" | 10 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h" |
| 9 #include "ui/aura/test/aura_test_base.h" | 11 #include "ui/aura/test/aura_test_base.h" |
| 10 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 11 #include "ui/aura/window_event_dispatcher.h" | 13 #include "ui/aura/window_event_dispatcher.h" |
| 12 #include "ui/events/event_utils.h" | 14 #include "ui/events/event_utils.h" |
| 13 #include "ui/views/controls/webview/webview.h" | 15 #include "ui/views/controls/webview/webview.h" |
| 14 #include "ui/wm/core/default_activation_client.h" | 16 #include "ui/wm/core/default_activation_client.h" |
| 15 #include "ui/wm/core/easy_resize_window_targeter.h" | 17 #include "ui/wm/core/easy_resize_window_targeter.h" |
| 16 | 18 |
| 17 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase { | 19 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 ui::MouseEvent move(ui::ET_MOUSE_MOVED, gfx::Point(32, 37), | 249 ui::MouseEvent move(ui::ET_MOUSE_MOVED, gfx::Point(32, 37), |
| 248 gfx::Point(32, 37), ui::EventTimeForNow(), ui::EF_NONE, | 250 gfx::Point(32, 37), ui::EventTimeForNow(), ui::EF_NONE, |
| 249 ui::EF_NONE); | 251 ui::EF_NONE); |
| 250 ui::EventDispatchDetails details = | 252 ui::EventDispatchDetails details = |
| 251 event_processor()->OnEventFromSource(&move); | 253 event_processor()->OnEventFromSource(&move); |
| 252 ASSERT_FALSE(details.dispatcher_destroyed); | 254 ASSERT_FALSE(details.dispatcher_destroyed); |
| 253 EXPECT_EQ(window, move.target()); | 255 EXPECT_EQ(window, move.target()); |
| 254 } | 256 } |
| 255 #endif // defined (OS_CHROMEOS) | 257 #endif // defined (OS_CHROMEOS) |
| 256 } | 258 } |
| OLD | NEW |