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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2683853005: bindings: Make some value iterator properties aliases to Array.prototype functions (Closed)
Patch Set: Remove constexpr from Internals.h to fix the Android build Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 45599839a2552add0e97821c0110f42d8927dd66..0b5b0862d491c84491906679415eb55b37de11a9 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -157,23 +157,6 @@
namespace blink {
-namespace {
-
-class InternalsIterationSource final
- : public ValueIterable<int>::IterationSource {
- public:
- bool next(ScriptState* scriptState,
- int& value,
- ExceptionState& exceptionState) override {
- if (m_index >= 5)
- return false;
- value = m_index * m_index;
- return true;
- }
-};
-
-} // namespace
-
static WTF::Optional<DocumentMarker::MarkerType> markerTypeFrom(
const String& markerType) {
if (equalIgnoringCase(markerType, "Spelling"))
@@ -2991,12 +2974,6 @@ float Internals::visualViewportScrollY() {
return frame()->view()->getScrollableArea()->getScrollOffset().height();
}
-ValueIterable<int>::IterationSource* Internals::startIteration(
- ScriptState*,
- ExceptionState&) {
- return new InternalsIterationSource();
-}
-
bool Internals::isUseCounted(Document* document, uint32_t feature) {
if (feature >= UseCounter::NumberOfFeatures)
return false;
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698