| 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 #include "base/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 | 7 |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <mlang.h> | 10 #include <mlang.h> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void SetLayoutTestMode(bool enable) { | 76 void SetLayoutTestMode(bool enable) { |
| 77 layout_test_mode_ = enable; | 77 layout_test_mode_ = enable; |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool IsLayoutTestMode() { | 80 bool IsLayoutTestMode() { |
| 81 return layout_test_mode_; | 81 return layout_test_mode_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 void InitializeForTesting() { | 84 void InitializeForTesting() { |
| 85 WTF::initializeThreading(); | 85 WTF::initializeThreading(); |
| 86 WebCore::AtomicString::init(); |
| 86 } | 87 } |
| 87 | 88 |
| 88 void EnableWebCoreNotImplementedLogging() { | 89 void EnableWebCoreNotImplementedLogging() { |
| 89 WebCore::LogNotYetImplemented.state = WTFLogChannelOn; | 90 WebCore::LogNotYetImplemented.state = WTFLogChannelOn; |
| 90 } | 91 } |
| 91 | 92 |
| 92 std::wstring DumpDocumentText(WebFrame* web_frame) { | 93 std::wstring DumpDocumentText(WebFrame* web_frame) { |
| 93 WebFrameImpl* webFrameImpl = static_cast<WebFrameImpl*>(web_frame); | 94 WebFrameImpl* webFrameImpl = static_cast<WebFrameImpl*>(web_frame); |
| 94 WebCore::Frame* frame = webFrameImpl->frame(); | 95 WebCore::Frame* frame = webFrameImpl->frame(); |
| 95 | 96 |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 } | 431 } |
| 431 | 432 |
| 432 g_forcefully_terminate_plugin_process = value; | 433 g_forcefully_terminate_plugin_process = value; |
| 433 } | 434 } |
| 434 | 435 |
| 435 bool ShouldForcefullyTerminatePluginProcess() { | 436 bool ShouldForcefullyTerminatePluginProcess() { |
| 436 return g_forcefully_terminate_plugin_process; | 437 return g_forcefully_terminate_plugin_process; |
| 437 } | 438 } |
| 438 | 439 |
| 439 } // namespace webkit_glue | 440 } // namespace webkit_glue |
| OLD | NEW |