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

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

Issue 1167343002: Add methods for creating V8 extras-based ReadableStreams from C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: That todo is not necessary according to yhirano@ Created 5 years, 5 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
« no previous file with comments | « Source/core/streams/UnderlyingSourceBase.idl ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class InternalRuntimeFlags; 60 class InternalRuntimeFlags;
61 class InternalSettings; 61 class InternalSettings;
62 class Iterator; 62 class Iterator;
63 class LayerRectList; 63 class LayerRectList;
64 class LocalDOMWindow; 64 class LocalDOMWindow;
65 class LocalFrame; 65 class LocalFrame;
66 class Node; 66 class Node;
67 class Page; 67 class Page;
68 class PluginPlaceholderOptions; 68 class PluginPlaceholderOptions;
69 class PrivateScriptTest; 69 class PrivateScriptTest;
70 class ReadableStreamTestCase;
70 class Range; 71 class Range;
71 class SerializedScriptValue; 72 class SerializedScriptValue;
72 class ShadowRoot; 73 class ShadowRoot;
73 class TypeConversions; 74 class TypeConversions;
74 class UnionTypesTest; 75 class UnionTypesTest;
75 template <typename NodeType> class StaticNodeTypeList; 76 template <typename NodeType> class StaticNodeTypeList;
76 typedef StaticNodeTypeList<Node> StaticNodeList; 77 typedef StaticNodeTypeList<Node> StaticNodeList;
77 78
78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { 79 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> {
79 DEFINE_WRAPPERTYPEINFO(); 80 DEFINE_WRAPPERTYPEINFO();
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // |useCounterId| must be one of the values from the UseCounter::Feature enu m. 361 // |useCounterId| must be one of the values from the UseCounter::Feature enu m.
361 bool isUseCounted(Document*, int useCounterId); 362 bool isUseCounted(Document*, int useCounterId);
362 363
363 String unscopeableAttribute(); 364 String unscopeableAttribute();
364 String unscopeableMethod(); 365 String unscopeableMethod();
365 366
366 ClientRectList* focusRingRects(Element*); 367 ClientRectList* focusRingRects(Element*);
367 368
368 void setCapsLockState(bool enabled); 369 void setCapsLockState(bool enabled);
369 370
371 ReadableStreamTestCase* createReadableStreamTestCase(ScriptState*);
372
370 private: 373 private:
371 explicit Internals(ScriptState*); 374 explicit Internals(ScriptState*);
375
372 Document* contextDocument() const; 376 Document* contextDocument() const;
373 LocalFrame* frame() const; 377 LocalFrame* frame() const;
374 Vector<String> iconURLs(Document*, int iconTypesMask) const; 378 Vector<String> iconURLs(Document*, int iconTypesMask) const;
375 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ; 379 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ;
376 380
377 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 381 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
378 Member<InternalRuntimeFlags> m_runtimeFlags; 382 Member<InternalRuntimeFlags> m_runtimeFlags;
379 383
380 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 384 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
381 }; 385 };
382 386
383 } // namespace blink 387 } // namespace blink
384 388
385 #endif // Internals_h 389 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/streams/UnderlyingSourceBase.idl ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698