| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 base::OneShotTimer<WorkQueue> timer_; | 274 base::OneShotTimer<WorkQueue> timer_; |
| 275 std::queue<WorkItem*> queue_; | 275 std::queue<WorkItem*> queue_; |
| 276 bool frozen_; | 276 bool frozen_; |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 // Support for overridePreference. | 279 // Support for overridePreference. |
| 280 bool CppVariantToBool(const CppVariant&); | 280 bool CppVariantToBool(const CppVariant&); |
| 281 int32 CppVariantToInt32(const CppVariant&); | 281 int32 CppVariantToInt32(const CppVariant&); |
| 282 std::wstring CppVariantToWstring(const CppVariant&); | 282 std::wstring CppVariantToWstring(const CppVariant&); |
| 283 | 283 |
| 284 void LogErrorToConsole(const std::string& text); |
| 285 |
| 284 // Non-owning pointer. The LayoutTestController is owned by the host. | 286 // Non-owning pointer. The LayoutTestController is owned by the host. |
| 285 static TestShell* shell_; | 287 static TestShell* shell_; |
| 286 | 288 |
| 287 // If true, the test_shell will produce a plain text dump rather than a | 289 // If true, the test_shell will produce a plain text dump rather than a |
| 288 // text representation of the renderer. | 290 // text representation of the renderer. |
| 289 static bool dump_as_text_; | 291 static bool dump_as_text_; |
| 290 | 292 |
| 291 // If true, the test_shell will write a descriptive line for each editing | 293 // If true, the test_shell will write a descriptive line for each editing |
| 292 // command. | 294 // command. |
| 293 static bool dump_editing_callbacks_; | 295 static bool dump_editing_callbacks_; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 352 |
| 351 static WorkQueue work_queue_; | 353 static WorkQueue work_queue_; |
| 352 | 354 |
| 353 static CppVariant globalFlag_; | 355 static CppVariant globalFlag_; |
| 354 | 356 |
| 355 // Bound variable counting the number of top URLs visited. | 357 // Bound variable counting the number of top URLs visited. |
| 356 static CppVariant webHistoryItemCount_; | 358 static CppVariant webHistoryItemCount_; |
| 357 }; | 359 }; |
| 358 | 360 |
| 359 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ | 361 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ |
| OLD | NEW |