OLD | NEW |
1 // Copyright 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 #ifndef CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ |
6 #define CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ | 6 #define CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <string> | 10 #include <string> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // True if the controller was reset successfully. | 129 // True if the controller was reset successfully. |
130 bool ResetAfterLayoutTest(); | 130 bool ResetAfterLayoutTest(); |
131 | 131 |
132 void SetTempPath(const base::FilePath& temp_path); | 132 void SetTempPath(const base::FilePath& temp_path); |
133 void RendererUnresponsive(); | 133 void RendererUnresponsive(); |
134 void OverrideWebkitPrefs(WebPreferences* prefs); | 134 void OverrideWebkitPrefs(WebPreferences* prefs); |
135 void OpenURL(const GURL& url); | 135 void OpenURL(const GURL& url); |
136 void TestFinishedInSecondaryWindow(); | 136 void TestFinishedInSecondaryWindow(); |
137 bool IsMainWindow(WebContents* web_contents) const; | 137 bool IsMainWindow(WebContents* web_contents) const; |
138 scoped_ptr<BluetoothChooser> RunBluetoothChooser( | 138 scoped_ptr<BluetoothChooser> RunBluetoothChooser( |
139 WebContents* web_contents, | 139 RenderFrameHost* frame, |
140 const BluetoothChooser::EventHandler& event_handler, | 140 const BluetoothChooser::EventHandler& event_handler, |
141 const url::Origin& origin); | 141 const url::Origin& origin); |
142 | 142 |
143 BlinkTestResultPrinter* printer() { return printer_.get(); } | 143 BlinkTestResultPrinter* printer() { return printer_.get(); } |
144 void set_printer(BlinkTestResultPrinter* printer) { printer_.reset(printer); } | 144 void set_printer(BlinkTestResultPrinter* printer) { printer_.reset(printer); } |
145 | 145 |
146 void DevToolsProcessCrashed(); | 146 void DevToolsProcessCrashed(); |
147 | 147 |
148 // WebContentsObserver implementation. | 148 // WebContentsObserver implementation. |
149 bool OnMessageReceived(const IPC::Message& message) override; | 149 bool OnMessageReceived(const IPC::Message& message) override; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // waiting on the UI thread while layout tests are being ran. | 252 // waiting on the UI thread while layout tests are being ran. |
253 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_; | 253 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_; |
254 #endif | 254 #endif |
255 | 255 |
256 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); | 256 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); |
257 }; | 257 }; |
258 | 258 |
259 } // namespace content | 259 } // namespace content |
260 | 260 |
261 #endif // CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ | 261 #endif // CONTENT_SHELL_BROWSER_BLINK_TEST_CONTROLLER_H_ |
OLD | NEW |