Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: webkit/glue/webkit_glue.cc

Issue 10719: Add GCController support to test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 WebCore::ScriptController::setFlags(utf8_str.data(), static_cast<int>(utf8_str .size())); 57 WebCore::ScriptController::setFlags(utf8_str.data(), static_cast<int>(utf8_str .size()));
58 #endif 58 #endif
59 } 59 }
60 60
61 void SetRecordPlaybackMode(bool value) { 61 void SetRecordPlaybackMode(bool value) {
62 #if USE(V8) 62 #if USE(V8)
63 WebCore::ScriptController::setRecordPlaybackMode(value); 63 WebCore::ScriptController::setRecordPlaybackMode(value);
64 #endif 64 #endif
65 } 65 }
66 66
67
68 void SetShouldExposeGCController(bool enable) {
69 #if USE(V8)
70 WebCore::ScriptController::setShouldExposeGCController(enable);
71 #endif
72 }
73
67 static bool layout_test_mode_ = false; 74 static bool layout_test_mode_ = false;
68 75
69 void SetLayoutTestMode(bool enable) { 76 void SetLayoutTestMode(bool enable) {
70 layout_test_mode_ = enable; 77 layout_test_mode_ = enable;
71 } 78 }
72 79
73 bool IsLayoutTestMode() { 80 bool IsLayoutTestMode() {
74 return layout_test_mode_; 81 return layout_test_mode_;
75 } 82 }
76 83
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 460 }
454 461
455 g_forcefully_terminate_plugin_process = value; 462 g_forcefully_terminate_plugin_process = value;
456 } 463 }
457 464
458 bool ShouldForcefullyTerminatePluginProcess() { 465 bool ShouldForcefullyTerminatePluginProcess() {
459 return g_forcefully_terminate_plugin_process; 466 return g_forcefully_terminate_plugin_process;
460 } 467 }
461 468
462 } // namespace webkit_glue 469 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698