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 Maplike_h | 5 #ifndef Maplike_h |
6 #define Maplike_h | 6 #define Maplike_h |
7 | 7 |
8 #include "bindings/core/v8/Iterable.h" | 8 #include "bindings/core/v8/Iterable.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
10 #include "bindings/core/v8/ToV8.h" | 10 #include "bindings/core/v8/ToV8ForCore.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 template <typename KeyType, typename ValueType> | 14 template <typename KeyType, typename ValueType> |
15 class Maplike : public PairIterable<KeyType, ValueType> { | 15 class Maplike : public PairIterable<KeyType, ValueType> { |
16 public: | 16 public: |
17 bool hasForBinding(ScriptState* script_state, | 17 bool hasForBinding(ScriptState* script_state, |
18 const KeyType& key, | 18 const KeyType& key, |
19 ExceptionState& exception_state) { | 19 ExceptionState& exception_state) { |
20 ValueType value; | 20 ValueType value; |
(...skipping 14 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 virtual bool GetMapEntry(ScriptState*, | 36 virtual bool GetMapEntry(ScriptState*, |
37 const KeyType&, | 37 const KeyType&, |
38 ValueType&, | 38 ValueType&, |
39 ExceptionState&) = 0; | 39 ExceptionState&) = 0; |
40 }; | 40 }; |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
43 | 43 |
44 #endif // Maplike_h | 44 #endif // Maplike_h |
OLD | NEW |