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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/Maplike.h

Issue 2809243002: Split ToV8.h (Closed)
Patch Set: Rebase Created 3 years, 8 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698