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 17 matching lines...) Expand all Loading... |
28 #define Internals_h | 28 #define Internals_h |
29 | 29 |
30 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 30 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
31 #include "bindings/core/v8/ScriptPromise.h" | 31 #include "bindings/core/v8/ScriptPromise.h" |
32 #include "bindings/core/v8/ScriptValue.h" | 32 #include "bindings/core/v8/ScriptValue.h" |
33 #include "bindings/core/v8/ScriptWrappable.h" | 33 #include "bindings/core/v8/ScriptWrappable.h" |
34 #include "core/css/CSSComputedStyleDeclaration.h" | 34 #include "core/css/CSSComputedStyleDeclaration.h" |
35 #include "core/dom/ContextLifecycleObserver.h" | 35 #include "core/dom/ContextLifecycleObserver.h" |
36 #include "core/page/scrolling/ScrollingCoordinator.h" | 36 #include "core/page/scrolling/ScrollingCoordinator.h" |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "wtf/ArrayBuffer.h" | |
39 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
40 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
41 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
42 | 41 |
43 namespace blink { | 42 namespace blink { |
44 | 43 |
45 class CanvasRenderingContext2D; | 44 class CanvasRenderingContext2D; |
46 class ClientRect; | 45 class ClientRect; |
47 class ClientRectList; | 46 class ClientRectList; |
| 47 class DOMArrayBuffer; |
48 class DOMPoint; | 48 class DOMPoint; |
49 class DOMStringList; | 49 class DOMStringList; |
50 class LocalDOMWindow; | |
51 class DictionaryTest; | 50 class DictionaryTest; |
52 class Document; | 51 class Document; |
53 class DocumentFragment; | 52 class DocumentFragment; |
54 class DocumentMarker; | 53 class DocumentMarker; |
55 class Element; | 54 class Element; |
56 class ExceptionState; | 55 class ExceptionState; |
57 class ExecutionContext; | 56 class ExecutionContext; |
58 class GCObservation; | 57 class GCObservation; |
59 class HTMLElement; | 58 class HTMLElement; |
60 class HTMLMediaElement; | 59 class HTMLMediaElement; |
61 class InternalProfilers; | 60 class InternalProfilers; |
62 class InternalRuntimeFlags; | 61 class InternalRuntimeFlags; |
63 class InternalSettings; | 62 class InternalSettings; |
64 class Iterator; | 63 class Iterator; |
65 class LayerRectList; | 64 class LayerRectList; |
| 65 class LocalDOMWindow; |
66 class LocalFrame; | 66 class LocalFrame; |
67 class Node; | 67 class Node; |
68 class Page; | 68 class Page; |
69 class PagePopupController; | 69 class PagePopupController; |
70 class PrivateScriptTest; | 70 class PrivateScriptTest; |
71 class Range; | 71 class Range; |
72 class SerializedScriptValue; | 72 class SerializedScriptValue; |
73 class ShadowRoot; | 73 class ShadowRoot; |
| 74 class TypeConversions; |
74 template <typename NodeType> class StaticNodeTypeList; | 75 template <typename NodeType> class StaticNodeTypeList; |
75 typedef StaticNodeTypeList<Node> StaticNodeList; | 76 typedef StaticNodeTypeList<Node> StaticNodeList; |
76 class TypeConversions; | |
77 | 77 |
78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri
ptWrappable, public ContextLifecycleObserver { | 78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri
ptWrappable, public ContextLifecycleObserver { |
79 DEFINE_WRAPPERTYPEINFO(); | 79 DEFINE_WRAPPERTYPEINFO(); |
80 public: | 80 public: |
81 static Internals* create(Document*); | 81 static Internals* create(Document*); |
82 virtual ~Internals(); | 82 virtual ~Internals(); |
83 | 83 |
84 static void resetToConsistentState(Page*); | 84 static void resetToConsistentState(Page*); |
85 | 85 |
86 String elementRenderTreeAsText(Element*, ExceptionState&); | 86 String elementRenderTreeAsText(Element*, ExceptionState&); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 void startTrackingRepaints(Document*, ExceptionState&); | 268 void startTrackingRepaints(Document*, ExceptionState&); |
269 void stopTrackingRepaints(Document*, ExceptionState&); | 269 void stopTrackingRepaints(Document*, ExceptionState&); |
270 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat
e&); | 270 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat
e&); |
271 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); | 271 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); |
272 void forceFullRepaint(Document*, ExceptionState&); | 272 void forceFullRepaint(Document*, ExceptionState&); |
273 | 273 |
274 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception
State&); | 274 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception
State&); |
275 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except
ionState&); | 275 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except
ionState&); |
276 | 276 |
277 PassRefPtr<ArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>) c
onst; | 277 PassRefPtr<DOMArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>
) const; |
278 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<ArrayBuffer>)
const; | 278 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<DOMArrayBuffe
r>) const; |
279 | 279 |
280 String getCurrentCursorInfo(Document*, ExceptionState&); | 280 String getCurrentCursorInfo(Document*, ExceptionState&); |
281 | 281 |
282 String markerTextForListItem(Element*); | 282 String markerTextForListItem(Element*); |
283 | 283 |
284 void forceReload(bool endToEnd); | 284 void forceReload(bool endToEnd); |
285 | 285 |
286 String getImageSourceURL(Element*); | 286 String getImageSourceURL(Element*); |
287 | 287 |
288 bool isSelectPopupVisible(Node*); | 288 bool isSelectPopupVisible(Node*); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); | 337 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); |
338 | 338 |
339 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 339 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
340 Member<InternalRuntimeFlags> m_runtimeFlags; | 340 Member<InternalRuntimeFlags> m_runtimeFlags; |
341 Member<InternalProfilers> m_profilers; | 341 Member<InternalProfilers> m_profilers; |
342 }; | 342 }; |
343 | 343 |
344 } // namespace blink | 344 } // namespace blink |
345 | 345 |
346 #endif // Internals_h | 346 #endif // Internals_h |
OLD | NEW |