| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class CanvasRenderingContext; | 46 class CanvasRenderingContext; |
| 47 class ClientRect; | 47 class ClientRect; |
| 48 class ClientRectList; | 48 class ClientRectList; |
| 49 class DOMArrayBuffer; | 49 class DOMArrayBuffer; |
| 50 class DOMPoint; | 50 class DOMPoint; |
| 51 class DictionaryTest; | 51 class DictionaryTest; |
| 52 class Document; | 52 class Document; |
| 53 class DocumentFragment; | |
| 54 class DocumentMarker; | 53 class DocumentMarker; |
| 55 class Element; | 54 class Element; |
| 56 class ExceptionState; | 55 class ExceptionState; |
| 57 class GCObservation; | 56 class GCObservation; |
| 58 class HTMLElement; | |
| 59 class HTMLMediaElement; | 57 class HTMLMediaElement; |
| 60 class InternalRuntimeFlags; | 58 class InternalRuntimeFlags; |
| 61 class InternalSettings; | 59 class InternalSettings; |
| 62 class Iterator; | 60 class Iterator; |
| 63 class LayerRectList; | 61 class LayerRectList; |
| 64 class LocalDOMWindow; | 62 class LocalDOMWindow; |
| 65 class LocalFrame; | 63 class LocalFrame; |
| 66 class Node; | 64 class Node; |
| 67 class Page; | 65 class Page; |
| 68 class PluginPlaceholderOptions; | |
| 69 class PrivateScriptTest; | 66 class PrivateScriptTest; |
| 70 class Range; | 67 class Range; |
| 71 class SerializedScriptValue; | 68 class SerializedScriptValue; |
| 72 class ShadowRoot; | 69 class ShadowRoot; |
| 73 class TypeConversions; | 70 class TypeConversions; |
| 74 class UnionTypesTest; | 71 class UnionTypesTest; |
| 75 template <typename NodeType> class StaticNodeTypeList; | 72 template <typename NodeType> class StaticNodeTypeList; |
| 76 typedef StaticNodeTypeList<Node> StaticNodeList; | 73 typedef StaticNodeTypeList<Node> StaticNodeList; |
| 77 | 74 |
| 78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri
ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { | 75 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri
ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe
tworkConnectionInfo. | 338 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe
tworkConnectionInfo. |
| 342 void setNetworkConnectionInfo(const String&, ExceptionState&); | 339 void setNetworkConnectionInfo(const String&, ExceptionState&); |
| 343 | 340 |
| 344 ClientRect* boundsInViewportSpace(Element*); | 341 ClientRect* boundsInViewportSpace(Element*); |
| 345 | 342 |
| 346 unsigned countHitRegions(CanvasRenderingContext*); | 343 unsigned countHitRegions(CanvasRenderingContext*); |
| 347 | 344 |
| 348 bool isInCanvasFontCache(Document*, const String&); | 345 bool isInCanvasFontCache(Document*, const String&); |
| 349 unsigned canvasFontCacheMaxFonts(); | 346 unsigned canvasFontCacheMaxFonts(); |
| 350 | 347 |
| 351 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu
mentFragment>, ExceptionState&); | |
| 352 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti
ons&, ExceptionState&); | |
| 353 | |
| 354 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop. | 348 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop. |
| 355 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e
xplicitly measure only Blink GC time. | 349 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e
xplicitly measure only Blink GC time. |
| 356 // Normal LayoutTests should use gc() instead as it would trigger both
Blink GC and V8 GC. | 350 // Normal LayoutTests should use gc() instead as it would trigger both
Blink GC and V8 GC. |
| 357 void forceBlinkGCWithoutV8GC(); | 351 void forceBlinkGCWithoutV8GC(); |
| 358 | 352 |
| 359 String selectedHTMLForClipboard(); | 353 String selectedHTMLForClipboard(); |
| 360 String selectedTextForClipboard(); | 354 String selectedTextForClipboard(); |
| 361 | 355 |
| 362 void setVisualViewportOffset(int x, int y); | 356 void setVisualViewportOffset(int x, int y); |
| 363 | 357 |
| 364 // Return true if the given use counter exists for the given document. | 358 // Return true if the given use counter exists for the given document. |
| 365 // |useCounterId| must be one of the values from the UseCounter::Feature enu
m. | 359 // |useCounterId| must be one of the values from the UseCounter::Feature enu
m. |
| 366 bool isUseCounted(Document*, int useCounterId); | 360 bool isUseCounted(Document*, int useCounterId); |
| 367 | 361 |
| 368 String unscopeableAttribute(); | 362 String unscopeableAttribute(); |
| 369 String unscopeableMethod(); | 363 String unscopeableMethod(); |
| 370 | 364 |
| 371 ClientRectList* outlineRects(Element*); | 365 ClientRectList* outlineRects(Element*); |
| 372 | 366 |
| 373 void setCapsLockState(bool enabled); | 367 void setCapsLockState(bool enabled); |
| 374 | 368 |
| 375 bool setScrollbarVisibilityInScrollableArea(Node*, bool visible); | 369 bool setScrollbarVisibilityInScrollableArea(Node*, bool visible); |
| 376 | 370 |
| 377 void forceRestrictIFramePermissions(); | 371 void forceRestrictIFramePermissions(); |
| 378 | |
| 379 private: | 372 private: |
| 380 explicit Internals(ScriptState*); | 373 explicit Internals(ScriptState*); |
| 381 Document* contextDocument() const; | 374 Document* contextDocument() const; |
| 382 LocalFrame* frame() const; | 375 LocalFrame* frame() const; |
| 383 Vector<String> iconURLs(Document*, int iconTypesMask) const; | 376 Vector<String> iconURLs(Document*, int iconTypesMask) const; |
| 384 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&)
; | 377 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&)
; |
| 385 | 378 |
| 386 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 379 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
| 387 Member<InternalRuntimeFlags> m_runtimeFlags; | 380 Member<InternalRuntimeFlags> m_runtimeFlags; |
| 388 | 381 |
| 389 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 382 IterationSource* startIteration(ScriptState*, ExceptionState&) override; |
| 390 }; | 383 }; |
| 391 | 384 |
| 392 } // namespace blink | 385 } // namespace blink |
| 393 | 386 |
| 394 #endif // Internals_h | 387 #endif // Internals_h |
| OLD | NEW |