| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Allows layout tests to call SecurityOrigin::whiteListAccessFromOrigin(). | 198 // Allows layout tests to call SecurityOrigin::whiteListAccessFromOrigin(). |
| 199 void whiteListAccessFromOrigin(const CppArgumentList& args, CppVariant* result
); | 199 void whiteListAccessFromOrigin(const CppArgumentList& args, CppVariant* result
); |
| 200 | 200 |
| 201 // Clears all databases. | 201 // Clears all databases. |
| 202 void clearAllDatabases(const CppArgumentList& args, CppVariant* result); | 202 void clearAllDatabases(const CppArgumentList& args, CppVariant* result); |
| 203 | 203 |
| 204 // Calls setlocale(LC_ALL, ...) for a specified locale. | 204 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 205 // Resets between tests. | 205 // Resets between tests. |
| 206 void setPOSIXLocale(const CppArgumentList& args, CppVariant* result); | 206 void setPOSIXLocale(const CppArgumentList& args, CppVariant* result); |
| 207 | 207 |
| 208 // Gets the value of the counter in the element specified by its ID. |
| 209 void counterValueForElementById( |
| 210 const CppArgumentList& args, CppVariant* result); |
| 211 |
| 208 public: | 212 public: |
| 209 // The following methods are not exposed to JavaScript. | 213 // The following methods are not exposed to JavaScript. |
| 210 void SetWorkQueueFrozen(bool frozen) { work_queue_.set_frozen(frozen); } | 214 void SetWorkQueueFrozen(bool frozen) { work_queue_.set_frozen(frozen); } |
| 211 | 215 |
| 212 bool ShouldDumpAsText() { return dump_as_text_; } | 216 bool ShouldDumpAsText() { return dump_as_text_; } |
| 213 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; } | 217 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; } |
| 214 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; } | 218 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; } |
| 215 void SetShouldDumpFrameLoadCallbacks(bool value) { | 219 void SetShouldDumpFrameLoadCallbacks(bool value) { |
| 216 dump_frame_load_callbacks_ = value; | 220 dump_frame_load_callbacks_ = value; |
| 217 } | 221 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 370 |
| 367 static WorkQueue work_queue_; | 371 static WorkQueue work_queue_; |
| 368 | 372 |
| 369 static CppVariant globalFlag_; | 373 static CppVariant globalFlag_; |
| 370 | 374 |
| 371 // Bound variable counting the number of top URLs visited. | 375 // Bound variable counting the number of top URLs visited. |
| 372 static CppVariant webHistoryItemCount_; | 376 static CppVariant webHistoryItemCount_; |
| 373 }; | 377 }; |
| 374 | 378 |
| 375 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 379 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
| OLD | NEW |