Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: Source/core/testing/Internals.h

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 DocumentMarker; 52 class DocumentMarker;
54 class Element; 53 class Element;
55 class ExceptionState; 54 class ExceptionState;
56 class ExecutionContext; 55 class ExecutionContext;
57 class GCObservation; 56 class GCObservation;
58 class HTMLElement; 57 class HTMLElement;
59 class HTMLMediaElement; 58 class HTMLMediaElement;
60 class InternalProfilers; 59 class InternalProfilers;
61 class InternalRuntimeFlags; 60 class InternalRuntimeFlags;
62 class InternalSettings; 61 class InternalSettings;
63 class Iterator; 62 class Iterator;
64 class LayerRectList; 63 class LayerRectList;
64 class LocalDOMWindow;
65 class LocalFrame; 65 class LocalFrame;
66 class Node; 66 class Node;
67 class Page; 67 class Page;
68 class PagePopupController; 68 class PagePopupController;
69 class PrivateScriptTest; 69 class PrivateScriptTest;
70 class Range; 70 class Range;
71 class SerializedScriptValue; 71 class SerializedScriptValue;
72 class ShadowRoot; 72 class ShadowRoot;
73 class TypeConversions;
73 template <typename NodeType> class StaticNodeTypeList; 74 template <typename NodeType> class StaticNodeTypeList;
74 typedef StaticNodeTypeList<Node> StaticNodeList; 75 typedef StaticNodeTypeList<Node> StaticNodeList;
75 class TypeConversions;
76 76
77 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver { 77 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver {
78 DEFINE_WRAPPERTYPEINFO(); 78 DEFINE_WRAPPERTYPEINFO();
79 public: 79 public:
80 static Internals* create(Document*); 80 static Internals* create(Document*);
81 virtual ~Internals(); 81 virtual ~Internals();
82 82
83 static void resetToConsistentState(Page*); 83 static void resetToConsistentState(Page*);
84 84
85 String elementRenderTreeAsText(Element*, ExceptionState&); 85 String elementRenderTreeAsText(Element*, ExceptionState&);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 void startTrackingRepaints(Document*, ExceptionState&); 266 void startTrackingRepaints(Document*, ExceptionState&);
267 void stopTrackingRepaints(Document*, ExceptionState&); 267 void stopTrackingRepaints(Document*, ExceptionState&);
268 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat e&); 268 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat e&);
269 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except ionState&); 269 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except ionState&);
270 void forceFullRepaint(Document*, ExceptionState&); 270 void forceFullRepaint(Document*, ExceptionState&);
271 271
272 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception State&); 272 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception State&);
273 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except ionState&); 273 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except ionState&);
274 274
275 PassRefPtr<ArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>) c onst; 275 PassRefPtr<DOMArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue> ) const;
276 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<ArrayBuffer>) const; 276 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<DOMArrayBuffe r>) const;
277 277
278 String getCurrentCursorInfo(Document*, ExceptionState&); 278 String getCurrentCursorInfo(Document*, ExceptionState&);
279 279
280 String markerTextForListItem(Element*); 280 String markerTextForListItem(Element*);
281 281
282 void forceReload(bool endToEnd); 282 void forceReload(bool endToEnd);
283 283
284 String getImageSourceURL(Element*); 284 String getImageSourceURL(Element*);
285 285
286 bool isSelectPopupVisible(Node*); 286 bool isSelectPopupVisible(Node*);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 335 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
336 336
337 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 337 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
338 Member<InternalRuntimeFlags> m_runtimeFlags; 338 Member<InternalRuntimeFlags> m_runtimeFlags;
339 Member<InternalProfilers> m_profilers; 339 Member<InternalProfilers> m_profilers;
340 }; 340 };
341 341
342 } // namespace blink 342 } // namespace blink
343 343
344 #endif // Internals_h 344 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698