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 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #else | 50 #else |
51 typedef SkBitmap* GlueBitmap; | 51 typedef SkBitmap* GlueBitmap; |
52 #endif | 52 #endif |
53 | 53 |
54 namespace webkit_glue { | 54 namespace webkit_glue { |
55 | 55 |
56 //----------------------------------------------------------------------------- | 56 //----------------------------------------------------------------------------- |
57 // Functions implemented by JS engines. | 57 // Functions implemented by JS engines. |
58 void SetJavaScriptFlags(const std::wstring& flags); | 58 void SetJavaScriptFlags(const std::wstring& flags); |
59 void SetRecordPlaybackMode(bool value); | 59 void SetRecordPlaybackMode(bool value); |
| 60 void SetShouldExposeGCController(bool enable); |
60 | 61 |
61 //----------------------------------------------------------------------------- | 62 //----------------------------------------------------------------------------- |
62 // Functions implemented by WebKit, called by the embedder: | 63 // Functions implemented by WebKit, called by the embedder: |
63 | 64 |
64 // Turns on "layout test" mode, which tries to mimic the font and widget sizing | 65 // Turns on "layout test" mode, which tries to mimic the font and widget sizing |
65 // of the Mac DumpRenderTree. | 66 // of the Mac DumpRenderTree. |
66 void SetLayoutTestMode(bool enable); | 67 void SetLayoutTestMode(bool enable); |
67 bool IsLayoutTestMode(); | 68 bool IsLayoutTestMode(); |
68 | 69 |
69 #if defined(OS_WIN) | 70 #if defined(OS_WIN) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // exiting cleanly. | 276 // exiting cleanly. |
276 void SetForcefullyTerminatePluginProcess(bool value); | 277 void SetForcefullyTerminatePluginProcess(bool value); |
277 | 278 |
278 // Returns true if the plugin thread should terminate the process forcefully | 279 // Returns true if the plugin thread should terminate the process forcefully |
279 // instead of exiting cleanly. | 280 // instead of exiting cleanly. |
280 bool ShouldForcefullyTerminatePluginProcess(); | 281 bool ShouldForcefullyTerminatePluginProcess(); |
281 | 282 |
282 } // namespace webkit_glue | 283 } // namespace webkit_glue |
283 | 284 |
284 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 285 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |