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 |
321 // Enable or disable plugins. | 324 // Enable or disable plugins. |
322 void SetPluginsEnabled(bool enabled); | 325 void SetPluginsEnabled(bool enabled); |
323 | 326 |
324 /////////////////////////////////////////////////////////////////////////// | 327 /////////////////////////////////////////////////////////////////////////// |
325 // Methods that modify the state of TestRunner | 328 // Methods that modify the state of TestRunner |
326 | 329 |
327 // This function sets a flag that tells the test_shell to print a line of | 330 // This function sets a flag that tells the test_shell to print a line of |
328 // descriptive text for each editing command. It takes no arguments, and | 331 // descriptive text for each editing command. It takes no arguments, and |
329 // ignores any that may be present. | 332 // ignores any that may be present. |
330 void DumpEditingCallbacks(); | 333 void DumpEditingCallbacks(); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 bool use_mock_theme_; | 712 bool use_mock_theme_; |
710 | 713 |
711 base::WeakPtrFactory<TestRunner> weak_factory_; | 714 base::WeakPtrFactory<TestRunner> weak_factory_; |
712 | 715 |
713 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 716 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
714 }; | 717 }; |
715 | 718 |
716 } // namespace content | 719 } // namespace content |
717 | 720 |
718 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 721 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |