OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 #include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h" | 112 #include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h" |
113 #include "core/rendering/RenderLayer.h" | 113 #include "core/rendering/RenderLayer.h" |
114 #include "core/rendering/RenderMenuList.h" | 114 #include "core/rendering/RenderMenuList.h" |
115 #include "core/rendering/RenderObject.h" | 115 #include "core/rendering/RenderObject.h" |
116 #include "core/rendering/RenderTreeAsText.h" | 116 #include "core/rendering/RenderTreeAsText.h" |
117 #include "core/rendering/RenderView.h" | 117 #include "core/rendering/RenderView.h" |
118 #include "core/rendering/compositing/CompositedLayerMapping.h" | 118 #include "core/rendering/compositing/CompositedLayerMapping.h" |
119 #include "core/rendering/compositing/RenderLayerCompositor.h" | 119 #include "core/rendering/compositing/RenderLayerCompositor.h" |
120 #include "core/testing/DictionaryTest.h" | 120 #include "core/testing/DictionaryTest.h" |
121 #include "core/testing/GCObservation.h" | 121 #include "core/testing/GCObservation.h" |
122 #include "core/testing/InternalProfilers.h" | |
123 #include "core/testing/InternalSettings.h" | 122 #include "core/testing/InternalSettings.h" |
124 #include "core/testing/LayerRect.h" | 123 #include "core/testing/LayerRect.h" |
125 #include "core/testing/LayerRectList.h" | 124 #include "core/testing/LayerRectList.h" |
126 #include "core/testing/MockPagePopupDriver.h" | 125 #include "core/testing/MockPagePopupDriver.h" |
127 #include "core/testing/PrivateScriptTest.h" | 126 #include "core/testing/PrivateScriptTest.h" |
128 #include "core/testing/TypeConversions.h" | 127 #include "core/testing/TypeConversions.h" |
129 #include "core/testing/UnionTypesTest.h" | 128 #include "core/testing/UnionTypesTest.h" |
130 #include "core/workers/WorkerThread.h" | 129 #include "core/workers/WorkerThread.h" |
131 #include "platform/Cursor.h" | 130 #include "platform/Cursor.h" |
132 #include "platform/Language.h" | 131 #include "platform/Language.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 if (!page) | 266 if (!page) |
268 return 0; | 267 return 0; |
269 return InternalSettings::from(*page); | 268 return InternalSettings::from(*page); |
270 } | 269 } |
271 | 270 |
272 InternalRuntimeFlags* Internals::runtimeFlags() const | 271 InternalRuntimeFlags* Internals::runtimeFlags() const |
273 { | 272 { |
274 return m_runtimeFlags.get(); | 273 return m_runtimeFlags.get(); |
275 } | 274 } |
276 | 275 |
277 InternalProfilers* Internals::profilers() | |
278 { | |
279 if (!m_profilers) | |
280 m_profilers = InternalProfilers::create(); | |
281 return m_profilers.get(); | |
282 } | |
283 | |
284 unsigned Internals::workerThreadCount() const | 276 unsigned Internals::workerThreadCount() const |
285 { | 277 { |
286 return WorkerThread::workerThreadCount(); | 278 return WorkerThread::workerThreadCount(); |
287 } | 279 } |
288 | 280 |
289 String Internals::address(Node* node) | 281 String Internals::address(Node* node) |
290 { | 282 { |
291 char buf[32]; | 283 char buf[32]; |
292 sprintf(buf, "%p", node); | 284 sprintf(buf, "%p", node); |
293 | 285 |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 } | 2180 } |
2189 | 2181 |
2190 ScriptPromise Internals::promiseCheckOverload(ScriptState* scriptState, Location
*, long, long) | 2182 ScriptPromise Internals::promiseCheckOverload(ScriptState* scriptState, Location
*, long, long) |
2191 { | 2183 { |
2192 return ScriptPromise::cast(scriptState, v8String(scriptState->isolate(), "do
ne")); | 2184 return ScriptPromise::cast(scriptState, v8String(scriptState->isolate(), "do
ne")); |
2193 } | 2185 } |
2194 | 2186 |
2195 void Internals::trace(Visitor* visitor) | 2187 void Internals::trace(Visitor* visitor) |
2196 { | 2188 { |
2197 visitor->trace(m_runtimeFlags); | 2189 visitor->trace(m_runtimeFlags); |
2198 visitor->trace(m_profilers); | |
2199 } | 2190 } |
2200 | 2191 |
2201 void Internals::setValueForUser(Element* element, const String& value) | 2192 void Internals::setValueForUser(Element* element, const String& value) |
2202 { | 2193 { |
2203 toHTMLInputElement(element)->setValueForUser(value); | 2194 toHTMLInputElement(element)->setValueForUser(value); |
2204 } | 2195 } |
2205 | 2196 |
2206 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) | 2197 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) |
2207 { | 2198 { |
2208 if (!node) | 2199 if (!node) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2297 } | 2288 } |
2298 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2289 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2299 } | 2290 } |
2300 | 2291 |
2301 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2292 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2302 { | 2293 { |
2303 return new InternalsIterator; | 2294 return new InternalsIterator; |
2304 } | 2295 } |
2305 | 2296 |
2306 } // namespace blink | 2297 } // namespace blink |
OLD | NEW |