| Index: third_party/WebKit/Source/bindings/core/v8/Iterable.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/Iterable.h b/third_party/WebKit/Source/bindings/core/v8/Iterable.h
|
| index 84e61a3e4dfd95098bae38b8716c604d998a7a61..d5087624a6888067ff198f97c5f255604798de04 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/Iterable.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/Iterable.h
|
| @@ -11,7 +11,9 @@
|
|
|
| namespace blink {
|
|
|
| -// Typically, use one of ValueIterable<> and PairIterable<> (below) instead!
|
| +// Typically, you should use PairIterable<> (below) instead.
|
| +// Also, note that value iterators are set up automatically by the bindings
|
| +// code and the operations below come directly from V8.
|
| template <typename KeyType, typename ValueType>
|
| class Iterable {
|
| public:
|
| @@ -165,45 +167,6 @@ class Iterable {
|
| };
|
|
|
| // Utiltity mixin base-class for classes implementing IDL interfaces with
|
| -// "iterable<T>".
|
| -template <typename ValueType>
|
| -class ValueIterable : public Iterable<unsigned, ValueType> {
|
| - public:
|
| - Iterator* iterator(ScriptState* scriptState, ExceptionState& exceptionState) {
|
| - return this->valuesForBinding(scriptState, exceptionState);
|
| - }
|
| -
|
| - class IterationSource
|
| - : public Iterable<unsigned, ValueType>::IterationSource {
|
| - public:
|
| - IterationSource() : m_index(0) {}
|
| -
|
| - ~IterationSource() override {}
|
| -
|
| - // If end of iteration has been reached or an exception thrown: return
|
| - // false.
|
| - // Otherwise: set |value| and return true.
|
| - // Note: |this->m_index| is the index being accessed.
|
| - virtual bool next(ScriptState*, ValueType&, ExceptionState&) = 0;
|
| -
|
| - protected:
|
| - unsigned m_index;
|
| -
|
| - private:
|
| - bool next(ScriptState* scriptState,
|
| - unsigned& key,
|
| - ValueType& value,
|
| - ExceptionState& exceptionState) final {
|
| - if (!next(scriptState, value, exceptionState))
|
| - return false;
|
| - key = m_index;
|
| - ++m_index;
|
| - return true;
|
| - }
|
| - };
|
| -};
|
| -
|
| -// Utiltity mixin base-class for classes implementing IDL interfaces with
|
| // "iterable<T1, T2>".
|
| template <typename KeyType, typename ValueType>
|
| class PairIterable : public Iterable<KeyType, ValueType> {
|
|
|