OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef DictionaryHelper_h | |
6 #define DictionaryHelper_h | |
7 | |
8 #include "bindings/core/v8/Dictionary.h" | |
9 | |
10 namespace WebCore { | |
11 | |
12 struct DictionaryHelper { | |
haraken
2014/07/10 15:05:47
I'd put DictionaryHelper into Dictionary.h, so tha
tasak
2014/07/11 04:51:22
Done.
| |
13 template <typename T> | |
14 static bool get(const Dictionary&, const String& key, T& value); | |
15 template <typename T> | |
16 static bool get(const Dictionary&, const String& key, T& value, bool& hasVal ue); | |
17 template <typename T> | |
18 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, T& value); | |
19 }; | |
20 | |
21 } // namespace WebCore | |
22 | |
23 #endif | |
OLD | NEW |