| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef Iterable_h | 5 #ifndef Iterable_h |
| 6 #define Iterable_h | 6 #define Iterable_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/V8IteratorResultValue.h" | 9 #include "bindings/core/v8/V8IteratorResultValue.h" |
| 9 #include "bindings/core/v8/V8ScriptRunner.h" | 10 #include "bindings/core/v8/V8ScriptRunner.h" |
| 10 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
| 11 #include "core/dom/Iterator.h" | 12 #include "core/dom/Iterator.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 // Typically, you should use PairIterable<> (below) instead. | 16 // Typically, you should use PairIterable<> (below) instead. |
| 16 // Also, note that value iterators are set up automatically by the bindings | 17 // Also, note that value iterators are set up automatically by the bindings |
| 17 // code and the operations below come directly from V8. | 18 // code and the operations below come directly from V8. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 public: | 181 public: |
| 181 Iterator* GetIterator(ScriptState* script_state, | 182 Iterator* GetIterator(ScriptState* script_state, |
| 182 ExceptionState& exception_state) { | 183 ExceptionState& exception_state) { |
| 183 return this->entriesForBinding(script_state, exception_state); | 184 return this->entriesForBinding(script_state, exception_state); |
| 184 } | 185 } |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 } // namespace blink | 188 } // namespace blink |
| 188 | 189 |
| 189 #endif // Iterable_h | 190 #endif // Iterable_h |
| OLD | NEW |