OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu
lt); | 192 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu
lt); |
193 void objCClassNameOf(const CppArgumentList& args, CppVariant* result); | 193 void objCClassNameOf(const CppArgumentList& args, CppVariant* result); |
194 void addDisallowedURL(const CppArgumentList& args, CppVariant* result); | 194 void addDisallowedURL(const CppArgumentList& args, CppVariant* result); |
195 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); | 195 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); |
196 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); | 196 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); |
197 | 197 |
198 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); | 198 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); |
199 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re
sult); | 199 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re
sult); |
200 void overridePreference(const CppArgumentList& args, CppVariant* result); | 200 void overridePreference(const CppArgumentList& args, CppVariant* result); |
201 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria
nt* result); | 201 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria
nt* result); |
| 202 void setAllowFileAccessFromFileURLs(const CppArgumentList& args, CppVariant* r
esult); |
202 | 203 |
203 // The fallback method is called when a nonexistent method is called on | 204 // The fallback method is called when a nonexistent method is called on |
204 // the layout test controller object. | 205 // the layout test controller object. |
205 // It is usefull to catch typos in the JavaScript code (a few layout tests | 206 // It is usefull to catch typos in the JavaScript code (a few layout tests |
206 // do have typos in them) and it allows the script to continue running in | 207 // do have typos in them) and it allows the script to continue running in |
207 // that case (as the Mac does). | 208 // that case (as the Mac does). |
208 void fallbackMethod(const CppArgumentList& args, CppVariant* result); | 209 void fallbackMethod(const CppArgumentList& args, CppVariant* result); |
209 | 210 |
210 // Allows layout tests to call SecurityOrigin::whiteListAccessFromOrigin(). | 211 // Allows layout tests to call SecurityOrigin::whiteListAccessFromOrigin(). |
211 void whiteListAccessFromOrigin(const CppArgumentList& args, CppVariant* result
); | 212 void whiteListAccessFromOrigin(const CppArgumentList& args, CppVariant* result
); |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 416 |
416 static WorkQueue work_queue_; | 417 static WorkQueue work_queue_; |
417 | 418 |
418 static CppVariant globalFlag_; | 419 static CppVariant globalFlag_; |
419 | 420 |
420 // Bound variable counting the number of top URLs visited. | 421 // Bound variable counting the number of top URLs visited. |
421 static CppVariant webHistoryItemCount_; | 422 static CppVariant webHistoryItemCount_; |
422 }; | 423 }; |
423 | 424 |
424 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 425 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
OLD | NEW |