| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void clearBackForwardList(const CppArgumentList& args, CppVariant* result); | 164 void clearBackForwardList(const CppArgumentList& args, CppVariant* result); |
| 165 void keepWebHistory(const CppArgumentList& args, CppVariant* result); | 165 void keepWebHistory(const CppArgumentList& args, CppVariant* result); |
| 166 void storeWebScriptObject(const CppArgumentList& args, CppVariant* result); | 166 void storeWebScriptObject(const CppArgumentList& args, CppVariant* result); |
| 167 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu
lt); | 167 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu
lt); |
| 168 void objCClassNameOf(const CppArgumentList& args, CppVariant* result); | 168 void objCClassNameOf(const CppArgumentList& args, CppVariant* result); |
| 169 void addDisallowedURL(const CppArgumentList& args, CppVariant* result); | 169 void addDisallowedURL(const CppArgumentList& args, CppVariant* result); |
| 170 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); | 170 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); |
| 171 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); | 171 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result
); |
| 172 | 172 |
| 173 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); | 173 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); |
| 174 void queueScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* resul
t); | 174 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re
sult); |
| 175 | 175 |
| 176 // The fallback method is called when a nonexistent method is called on | 176 // The fallback method is called when a nonexistent method is called on |
| 177 // the layout test controller object. | 177 // the layout test controller object. |
| 178 // It is usefull to catch typos in the JavaScript code (a few layout tests | 178 // It is usefull to catch typos in the JavaScript code (a few layout tests |
| 179 // do have typos in them) and it allows the script to continue running in | 179 // do have typos in them) and it allows the script to continue running in |
| 180 // that case (as the Mac does). | 180 // that case (as the Mac does). |
| 181 void fallbackMethod(const CppArgumentList& args, CppVariant* result); | 181 void fallbackMethod(const CppArgumentList& args, CppVariant* result); |
| 182 | 182 |
| 183 public: | 183 public: |
| 184 // The following methods are not exposed to JavaScript. | 184 // The following methods are not exposed to JavaScript. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 static WorkQueue work_queue_; | 329 static WorkQueue work_queue_; |
| 330 | 330 |
| 331 static CppVariant globalFlag_; | 331 static CppVariant globalFlag_; |
| 332 | 332 |
| 333 // Bound variable counting the number of top URLs visited. | 333 // Bound variable counting the number of top URLs visited. |
| 334 static CppVariant webHistoryItemCount_; | 334 static CppVariant webHistoryItemCount_; |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 337 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
| OLD | NEW |