OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "public/web/WebKit.h" | 31 #include "public/web/WebKit.h" |
32 | 32 |
33 #include "bindings/core/v8/Microtask.h" | 33 #include "bindings/core/v8/Microtask.h" |
34 #include "bindings/core/v8/V8Binding.h" | 34 #include "bindings/core/v8/V8Binding.h" |
35 #include "bindings/core/v8/V8GCController.h" | 35 #include "bindings/core/v8/V8GCController.h" |
36 #include "bindings/core/v8/V8Initializer.h" | 36 #include "bindings/core/v8/V8Initializer.h" |
37 #include "core/animation/AnimationClock.h" | 37 #include "core/animation/AnimationClock.h" |
| 38 #include "core/layout/LayoutTheme.h" |
38 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
39 #include "core/workers/WorkerBackingThread.h" | 40 #include "core/workers/WorkerBackingThread.h" |
40 #include "gin/public/v8_platform.h" | 41 #include "gin/public/v8_platform.h" |
41 #include "modules/ModulesInitializer.h" | 42 #include "modules/ModulesInitializer.h" |
42 #include "platform/LayoutTestSupport.h" | 43 #include "platform/LayoutTestSupport.h" |
43 #include "platform/heap/Heap.h" | 44 #include "platform/heap/Heap.h" |
44 #include "public/platform/Platform.h" | 45 #include "public/platform/Platform.h" |
45 #include "public/platform/WebThread.h" | 46 #include "public/platform/WebThread.h" |
46 #include "wtf/Assertions.h" | 47 #include "wtf/Assertions.h" |
47 #include "wtf/PtrUtil.h" | 48 #include "wtf/PtrUtil.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void setLayoutTestMode(bool value) { | 118 void setLayoutTestMode(bool value) { |
118 LayoutTestSupport::setIsRunningLayoutTest(value); | 119 LayoutTestSupport::setIsRunningLayoutTest(value); |
119 } | 120 } |
120 | 121 |
121 bool layoutTestMode() { | 122 bool layoutTestMode() { |
122 return LayoutTestSupport::isRunningLayoutTest(); | 123 return LayoutTestSupport::isRunningLayoutTest(); |
123 } | 124 } |
124 | 125 |
125 void setMockThemeEnabledForTest(bool value) { | 126 void setMockThemeEnabledForTest(bool value) { |
126 LayoutTestSupport::setMockThemeEnabledForTest(value); | 127 LayoutTestSupport::setMockThemeEnabledForTest(value); |
| 128 LayoutTheme::theme().didChangeThemeEngine(); |
127 } | 129 } |
128 | 130 |
129 void setFontAntialiasingEnabledForTest(bool value) { | 131 void setFontAntialiasingEnabledForTest(bool value) { |
130 LayoutTestSupport::setFontAntialiasingEnabledForTest(value); | 132 LayoutTestSupport::setFontAntialiasingEnabledForTest(value); |
131 } | 133 } |
132 | 134 |
133 bool fontAntialiasingEnabledForTest() { | 135 bool fontAntialiasingEnabledForTest() { |
134 return LayoutTestSupport::isFontAntialiasingEnabledForTest(); | 136 return LayoutTestSupport::isFontAntialiasingEnabledForTest(); |
135 } | 137 } |
136 | 138 |
137 void resetPluginCache(bool reloadPages) { | 139 void resetPluginCache(bool reloadPages) { |
138 DCHECK(!reloadPages); | 140 DCHECK(!reloadPages); |
139 Page::refreshPlugins(); | 141 Page::refreshPlugins(); |
140 } | 142 } |
141 | 143 |
142 void decommitFreeableMemory() { | 144 void decommitFreeableMemory() { |
143 WTF::Partitions::decommitFreeableMemory(); | 145 WTF::Partitions::decommitFreeableMemory(); |
144 } | 146 } |
145 | 147 |
146 void MemoryPressureNotificationToWorkerThreadIsolates( | 148 void MemoryPressureNotificationToWorkerThreadIsolates( |
147 v8::MemoryPressureLevel level) { | 149 v8::MemoryPressureLevel level) { |
148 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); | 150 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); |
149 } | 151 } |
150 | 152 |
151 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { | 153 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { |
152 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); | 154 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); |
153 } | 155 } |
154 | 156 |
155 } // namespace blink | 157 } // namespace blink |
OLD | NEW |