| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 // Set the WebPreference that controls webkit's popup blocking. | 312 // Set the WebPreference that controls webkit's popup blocking. |
| 313 void SetPopupBlockingEnabled(bool block_popups); | 313 void SetPopupBlockingEnabled(bool block_popups); |
| 314 | 314 |
| 315 void SetJavaScriptCanAccessClipboard(bool can_access); | 315 void SetJavaScriptCanAccessClipboard(bool can_access); |
| 316 void SetXSSAuditorEnabled(bool enabled); | 316 void SetXSSAuditorEnabled(bool enabled); |
| 317 void SetAllowUniversalAccessFromFileURLs(bool allow); | 317 void SetAllowUniversalAccessFromFileURLs(bool allow); |
| 318 void SetAllowFileAccessFromFileURLs(bool allow); | 318 void SetAllowFileAccessFromFileURLs(bool allow); |
| 319 void OverridePreference(const std::string key, v8::Handle<v8::Value> value); | 319 void OverridePreference(const std::string key, v8::Handle<v8::Value> value); |
| 320 | 320 |
| 321 // Modify accept_languages in RendererPreferences. | |
| 322 void SetAcceptLanguages(const std::string& accept_languages); | |
| 323 | |
| 324 // Enable or disable plugins. | 321 // Enable or disable plugins. |
| 325 void SetPluginsEnabled(bool enabled); | 322 void SetPluginsEnabled(bool enabled); |
| 326 | 323 |
| 327 /////////////////////////////////////////////////////////////////////////// | 324 /////////////////////////////////////////////////////////////////////////// |
| 328 // Methods that modify the state of TestRunner | 325 // Methods that modify the state of TestRunner |
| 329 | 326 |
| 330 // This function sets a flag that tells the test_shell to print a line of | 327 // This function sets a flag that tells the test_shell to print a line of |
| 331 // descriptive text for each editing command. It takes no arguments, and | 328 // descriptive text for each editing command. It takes no arguments, and |
| 332 // ignores any that may be present. | 329 // ignores any that may be present. |
| 333 void DumpEditingCallbacks(); | 330 void DumpEditingCallbacks(); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 bool use_mock_theme_; | 709 bool use_mock_theme_; |
| 713 | 710 |
| 714 base::WeakPtrFactory<TestRunner> weak_factory_; | 711 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 715 | 712 |
| 716 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 713 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 717 }; | 714 }; |
| 718 | 715 |
| 719 } // namespace content | 716 } // namespace content |
| 720 | 717 |
| 721 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 718 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |