OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
10 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
12 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 12 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/browser/ui/view_ids.h" | 14 #include "chrome/browser/ui/view_ids.h" |
15 #include "chrome/browser/ui/views/find_bar_host.h" | 15 #include "chrome/browser/ui/views/find_bar_host.h" |
16 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
17 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
18 #include "chrome/test/base/interactive_test_utils.h" | 18 #include "chrome/test/base/interactive_test_utils.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
20 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
22 #include "net/test/spawned_test_server/spawned_test_server.h" | 22 #include "net/test/spawned_test_server/spawned_test_server.h" |
23 #include "ui/base/clipboard/clipboard.h" | 23 #include "ui/base/clipboard/clipboard.h" |
24 #include "ui/events/keycodes/keyboard_codes.h" | 24 #include "ui/events/keycodes/keyboard_codes.h" |
25 #include "ui/views/focus/focus_manager.h" | 25 #include "ui/views/focus/focus_manager.h" |
26 #include "ui/views/view.h" | 26 #include "ui/views/view.h" |
27 #include "ui/views/views_delegate.h" | |
28 | 27 |
29 using base::ASCIIToUTF16; | 28 using base::ASCIIToUTF16; |
30 using content::WebContents; | 29 using content::WebContents; |
31 | 30 |
32 namespace { | 31 namespace { |
33 | 32 |
34 static const char kSimplePage[] = "files/find_in_page/simple.html"; | 33 static const char kSimplePage[] = "files/find_in_page/simple.html"; |
35 | 34 |
36 class FindInPageTest : public InProcessBrowserTest { | 35 class FindInPageTest : public InProcessBrowserTest { |
37 public: | 36 public: |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 ui_test_utils::UrlLoadObserver observer( | 435 ui_test_utils::UrlLoadObserver observer( |
437 GURL("about:blank"), content::NotificationService::AllSources()); | 436 GURL("about:blank"), content::NotificationService::AllSources()); |
438 | 437 |
439 // Send Ctrl-Enter, should cause navigation to about:blank. | 438 // Send Ctrl-Enter, should cause navigation to about:blank. |
440 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( | 439 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( |
441 browser(), ui::VKEY_RETURN, true, false, false, false)); | 440 browser(), ui::VKEY_RETURN, true, false, false, false)); |
442 | 441 |
443 observer.Wait(); | 442 observer.Wait(); |
444 } | 443 } |
445 #endif | 444 #endif |
OLD | NEW |