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

Side by Side Diff: Source/bindings/core/v8/DictionaryHelper.h

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed LICENSE and windows build Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
(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 {
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698