| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 /* | 5 /* |
| 6 LayoutTestController class: | 6 LayoutTestController class: |
| 7 Bound to a JavaScript window.layoutTestController object using the | 7 Bound to a JavaScript window.layoutTestController object using the |
| 8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in | 8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in |
| 9 the test_shell (or, in principle, any web page loaded into a client app built | 9 the test_shell (or, in principle, any web page loaded into a client app built |
| 10 with this class) to control various aspects of how the tests are run and what | 10 with this class) to control various aspects of how the tests are run and what |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 void callShouldCloseOnWebView(const CppArgumentList& args, CppVariant* result)
; | 223 void callShouldCloseOnWebView(const CppArgumentList& args, CppVariant* result)
; |
| 224 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); | 224 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); |
| 225 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); | 225 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); |
| 226 | 226 |
| 227 void setJavaScriptCanAccessClipboard(const CppArgumentList& args, CppVariant*
result); | 227 void setJavaScriptCanAccessClipboard(const CppArgumentList& args, CppVariant*
result); |
| 228 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); | 228 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); |
| 229 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re
sult); | 229 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re
sult); |
| 230 void overridePreference(const CppArgumentList& args, CppVariant* result); | 230 void overridePreference(const CppArgumentList& args, CppVariant* result); |
| 231 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria
nt* result); | 231 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria
nt* result); |
| 232 void setAllowFileAccessFromFileURLs(const CppArgumentList& args, CppVariant* r
esult); | 232 void setAllowFileAccessFromFileURLs(const CppArgumentList& args, CppVariant* r
esult); |
| 233 void setMockSpeechInputResult(const CppArgumentList& args, CppVariant* result)
; |
| 233 | 234 |
| 234 // The fallback method is called when a nonexistent method is called on | 235 // The fallback method is called when a nonexistent method is called on |
| 235 // the layout test controller object. | 236 // the layout test controller object. |
| 236 // It is usefull to catch typos in the JavaScript code (a few layout tests | 237 // It is usefull to catch typos in the JavaScript code (a few layout tests |
| 237 // do have typos in them) and it allows the script to continue running in | 238 // do have typos in them) and it allows the script to continue running in |
| 238 // that case (as the Mac does). | 239 // that case (as the Mac does). |
| 239 void fallbackMethod(const CppArgumentList& args, CppVariant* result); | 240 void fallbackMethod(const CppArgumentList& args, CppVariant* result); |
| 240 | 241 |
| 241 // Allows layout tests to manage origins' whitelisting. | 242 // Allows layout tests to manage origins' whitelisting. |
| 242 void addOriginAccessWhitelistEntry( | 243 void addOriginAccessWhitelistEntry( |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 489 |
| 489 static WorkQueue work_queue_; | 490 static WorkQueue work_queue_; |
| 490 | 491 |
| 491 static CppVariant globalFlag_; | 492 static CppVariant globalFlag_; |
| 492 | 493 |
| 493 // Bound variable counting the number of top URLs visited. | 494 // Bound variable counting the number of top URLs visited. |
| 494 static CppVariant webHistoryItemCount_; | 495 static CppVariant webHistoryItemCount_; |
| 495 }; | 496 }; |
| 496 | 497 |
| 497 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 498 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
| OLD | NEW |