| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "content/public/browser/web_contents.h" | 62 #include "content/public/browser/web_contents.h" |
| 63 #include "content/public/browser/web_contents_observer.h" | 63 #include "content/public/browser/web_contents_observer.h" |
| 64 #include "content/public/common/page_transition_types.h" | 64 #include "content/public/common/page_transition_types.h" |
| 65 #include "content/public/common/renderer_preferences.h" | 65 #include "content/public/common/renderer_preferences.h" |
| 66 #include "content/public/common/url_constants.h" | 66 #include "content/public/common/url_constants.h" |
| 67 #include "content/public/test/browser_test_utils.h" | 67 #include "content/public/test/browser_test_utils.h" |
| 68 #include "content/public/test/test_navigation_observer.h" | 68 #include "content/public/test/test_navigation_observer.h" |
| 69 #include "grit/chromium_strings.h" | 69 #include "grit/chromium_strings.h" |
| 70 #include "grit/generated_resources.h" | 70 #include "grit/generated_resources.h" |
| 71 #include "net/dns/mock_host_resolver.h" | 71 #include "net/dns/mock_host_resolver.h" |
| 72 #include "net/test/spawned_test_server.h" | 72 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 73 #include "ui/base/l10n/l10n_util.h" | 73 #include "ui/base/l10n/l10n_util.h" |
| 74 | 74 |
| 75 #if defined(OS_MACOSX) | 75 #if defined(OS_MACOSX) |
| 76 #include "base/mac/mac_util.h" | 76 #include "base/mac/mac_util.h" |
| 77 #include "base/mac/scoped_nsautorelease_pool.h" | 77 #include "base/mac/scoped_nsautorelease_pool.h" |
| 78 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 78 #include "chrome/browser/ui/cocoa/run_loop_testing.h" |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 #if defined(OS_WIN) | 81 #if defined(OS_WIN) |
| 82 #include "base/i18n/rtl.h" | 82 #include "base/i18n/rtl.h" |
| (...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2152 RunTest(browser(), GetHrefURL(), modifiers, button, disposition); | 2152 RunTest(browser(), GetHrefURL(), modifiers, button, disposition); |
| 2153 } | 2153 } |
| 2154 | 2154 |
| 2155 // Shift-middle-clicks open in a foreground tab. | 2155 // Shift-middle-clicks open in a foreground tab. |
| 2156 IN_PROC_BROWSER_TEST_F(ClickModifierTest, HrefShiftMiddleClickTest) { | 2156 IN_PROC_BROWSER_TEST_F(ClickModifierTest, HrefShiftMiddleClickTest) { |
| 2157 int modifiers = WebKit::WebInputEvent::ShiftKey; | 2157 int modifiers = WebKit::WebInputEvent::ShiftKey; |
| 2158 WebKit::WebMouseEvent::Button button = WebKit::WebMouseEvent::ButtonMiddle; | 2158 WebKit::WebMouseEvent::Button button = WebKit::WebMouseEvent::ButtonMiddle; |
| 2159 WindowOpenDisposition disposition = NEW_FOREGROUND_TAB; | 2159 WindowOpenDisposition disposition = NEW_FOREGROUND_TAB; |
| 2160 RunTest(browser(), GetHrefURL(), modifiers, button, disposition); | 2160 RunTest(browser(), GetHrefURL(), modifiers, button, disposition); |
| 2161 } | 2161 } |
| OLD | NEW |