| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void queueForwardNavigation(const CppArgumentList& args, CppVariant* result); | 81 void queueForwardNavigation(const CppArgumentList& args, CppVariant* result); |
| 82 void queueReload(const CppArgumentList& args, CppVariant* result); | 82 void queueReload(const CppArgumentList& args, CppVariant* result); |
| 83 void queueLoadingScript(const CppArgumentList& args, CppVariant* result); | 83 void queueLoadingScript(const CppArgumentList& args, CppVariant* result); |
| 84 void queueNonLoadingScript(const CppArgumentList& args, CppVariant* result); | 84 void queueNonLoadingScript(const CppArgumentList& args, CppVariant* result); |
| 85 void queueLoad(const CppArgumentList& args, CppVariant* result); | 85 void queueLoad(const CppArgumentList& args, CppVariant* result); |
| 86 | 86 |
| 87 // Although this is named "objC" to match the Mac version, it actually tests | 87 // Although this is named "objC" to match the Mac version, it actually tests |
| 88 // the identity of its two arguments in C++. | 88 // the identity of its two arguments in C++. |
| 89 void objCIdentityIsEqual(const CppArgumentList& args, CppVariant* result); | 89 void objCIdentityIsEqual(const CppArgumentList& args, CppVariant* result); |
| 90 | 90 |
| 91 // Changes the cookie policy from the default to allow all cookies. |
| 92 void setAlwaysAcceptCookies(const CppArgumentList& args, CppVariant* result); |
| 93 |
| 91 // Gives focus to the window. | 94 // Gives focus to the window. |
| 92 void setWindowIsKey(const CppArgumentList& args, CppVariant* result); | 95 void setWindowIsKey(const CppArgumentList& args, CppVariant* result); |
| 93 | 96 |
| 94 // Method that controls whether pressing Tab key cycles through page elements | 97 // Method that controls whether pressing Tab key cycles through page elements |
| 95 // or inserts a '\t' char in text area | 98 // or inserts a '\t' char in text area |
| 96 void setTabKeyCyclesThroughElements(const CppArgumentList& args, CppVariant* r
esult); | 99 void setTabKeyCyclesThroughElements(const CppArgumentList& args, CppVariant* r
esult); |
| 97 | 100 |
| 98 // Passes through to WebPreferences which allows the user to have a custom | 101 // Passes through to WebPreferences which allows the user to have a custom |
| 99 // style sheet. | 102 // style sheet. |
| 100 void setUserStyleSheetEnabled(const CppArgumentList& args, CppVariant* result)
; | 103 void setUserStyleSheetEnabled(const CppArgumentList& args, CppVariant* result)
; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 350 |
| 348 static WorkQueue work_queue_; | 351 static WorkQueue work_queue_; |
| 349 | 352 |
| 350 static CppVariant globalFlag_; | 353 static CppVariant globalFlag_; |
| 351 | 354 |
| 352 // Bound variable counting the number of top URLs visited. | 355 // Bound variable counting the number of top URLs visited. |
| 353 static CppVariant webHistoryItemCount_; | 356 static CppVariant webHistoryItemCount_; |
| 354 }; | 357 }; |
| 355 | 358 |
| 356 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 359 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
| OLD | NEW |