| 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/macros.h" |
| 5 #include "base/strings/string_util.h" | 6 #include "base/strings/string_util.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" |
| 7 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_commands.h" | 11 #include "chrome/browser/ui/browser_commands.h" |
| 10 #include "chrome/browser/ui/browser_tabstrip.h" | 12 #include "chrome/browser/ui/browser_tabstrip.h" |
| 11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 13 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 12 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 14 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/browser/ui/view_ids.h" | 16 #include "chrome/browser/ui/view_ids.h" |
| 15 #include "chrome/browser/ui/views/find_bar_host.h" | 17 #include "chrome/browser/ui/views/find_bar_host.h" |
| 16 #include "chrome/browser/ui/views/frame/browser_view.h" | 18 #include "chrome/browser/ui/views/frame/browser_view.h" |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 ui_test_utils::UrlLoadObserver observer( | 475 ui_test_utils::UrlLoadObserver observer( |
| 474 GURL("about:blank"), content::NotificationService::AllSources()); | 476 GURL("about:blank"), content::NotificationService::AllSources()); |
| 475 | 477 |
| 476 // Send Ctrl-Enter, should cause navigation to about:blank. | 478 // Send Ctrl-Enter, should cause navigation to about:blank. |
| 477 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( | 479 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( |
| 478 browser(), ui::VKEY_RETURN, true, false, false, false)); | 480 browser(), ui::VKEY_RETURN, true, false, false, false)); |
| 479 | 481 |
| 480 observer.Wait(); | 482 observer.Wait(); |
| 481 } | 483 } |
| 482 #endif | 484 #endif |
| OLD | NEW |