OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "bindings/core/v8/V8BindingMacros.h" | 34 #include "bindings/core/v8/V8BindingMacros.h" |
35 #include "core/dom/MessagePort.h" | 35 #include "core/dom/MessagePort.h" |
36 #include "core/events/EventListener.h" | 36 #include "core/events/EventListener.h" |
37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
38 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
42 #include <v8.h> | 42 #include <v8.h> |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 class Element; | 46 class Element; |
47 class Path2D; | 47 class Path2D; |
48 | 48 |
49 class Dictionary { | 49 class Dictionary { |
50 ALLOW_ONLY_INLINE_ALLOCATION(); | 50 ALLOW_ONLY_INLINE_ALLOCATION(); |
51 public: | 51 public: |
52 Dictionary(); | 52 Dictionary(); |
53 Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*); | 53 Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*); |
54 ~Dictionary(); | 54 ~Dictionary(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, T& value); | 162 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, T& value); |
163 template <typename T> | 163 template <typename T> |
164 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, Nullable<T>& value); | 164 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, Nullable<T>& value); |
165 template <template <typename> class PointerType, typename T> | 165 template <template <typename> class PointerType, typename T> |
166 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, PointerType<T>& value); | 166 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, PointerType<T>& value); |
167 }; | 167 }; |
168 | 168 |
169 } | 169 } |
170 | 170 |
171 #endif // Dictionary_h | 171 #endif // Dictionary_h |
OLD | NEW |