OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell_window.h" |
5 #include "base/stringprintf.h" | 6 #include "base/stringprintf.h" |
6 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/browser/extensions/extension_test_message_listener.h" | 8 #include "chrome/browser/extensions/extension_test_message_listener.h" |
8 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 9 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
9 #include "chrome/browser/extensions/shell_window_registry.h" | 10 #include "chrome/browser/extensions/shell_window_registry.h" |
10 #include "chrome/browser/ui/extensions/shell_window.h" | |
11 #include "chrome/test/base/interactive_test_utils.h" | 11 #include "chrome/test/base/interactive_test_utils.h" |
12 #include "chrome/test/base/test_launcher_utils.h" | 12 #include "chrome/test/base/test_launcher_utils.h" |
13 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
17 #include "content/public/browser/render_widget_host_view.h" | 17 #include "content/public/browser/render_widget_host_view.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
19 #include "content/public/browser/web_contents_view.h" | 19 #include "content/public/browser/web_contents_view.h" |
20 #include "content/public/test/browser_test_utils.h" | 20 #include "content/public/test/browser_test_utils.h" |
21 #include "ui/base/keycodes/keyboard_codes.h" | 21 #include "ui/base/keycodes/keyboard_codes.h" |
22 #include "ui/base/test/ui_controls.h" | 22 #include "ui/base/test/ui_controls.h" |
23 | 23 |
| 24 using apps::ShellWindow; |
| 25 |
24 class WebViewInteractiveTest | 26 class WebViewInteractiveTest |
25 : public extensions::PlatformAppBrowserTest { | 27 : public extensions::PlatformAppBrowserTest { |
26 public: | 28 public: |
27 WebViewInteractiveTest() | 29 WebViewInteractiveTest() |
28 : corner_(gfx::Point()), | 30 : corner_(gfx::Point()), |
29 mouse_click_result_(false), | 31 mouse_click_result_(false), |
30 first_click_(true) {} | 32 first_click_(true) {} |
31 | 33 |
32 void MoveMouseInsideWindowWithListener(gfx::Point point, | 34 void MoveMouseInsideWindowWithListener(gfx::Point point, |
33 const std::string& message) { | 35 const std::string& message) { |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 // Started flakily failing after a Blink roll: http://crbug.com/245332 | 462 // Started flakily failing after a Blink roll: http://crbug.com/245332 |
461 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioningMoved) { | 463 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioningMoved) { |
462 SetupTest( | 464 SetupTest( |
463 "web_view/popup_positioning_moved", | 465 "web_view/popup_positioning_moved", |
464 "files/extensions/platform_apps/web_view/popup_positioning_moved" | 466 "files/extensions/platform_apps/web_view/popup_positioning_moved" |
465 "/guest.html"); | 467 "/guest.html"); |
466 ASSERT_TRUE(guest_web_contents()); | 468 ASSERT_TRUE(guest_web_contents()); |
467 | 469 |
468 PopupTestHelper(gfx::Point(20, 0)); | 470 PopupTestHelper(gfx::Point(20, 0)); |
469 } | 471 } |
OLD | NEW |