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

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

Issue 812873003: Clean up forward declarations in WebKit/Source (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fix Created 6 years 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8Binding.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
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 blink { 44 namespace blink {
45 45
46 class Element;
47 class Path2D;
48
49 // Dictionary class provides ways to retrieve property values as C++ objects 46 // Dictionary class provides ways to retrieve property values as C++ objects
50 // from a V8 object. Instances of this class must not outlive V8's handle scope 47 // from a V8 object. Instances of this class must not outlive V8's handle scope
51 // because they hold a V8 value without putting it on persistent handles. 48 // because they hold a V8 value without putting it on persistent handles.
52 class Dictionary { 49 class Dictionary {
53 ALLOW_ONLY_INLINE_ALLOCATION(); 50 ALLOW_ONLY_INLINE_ALLOCATION();
54 public: 51 public:
55 Dictionary(); 52 Dictionary();
56 Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*, ExceptionStat e&); 53 Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*, ExceptionStat e&);
57 ~Dictionary(); 54 ~Dictionary();
58 55
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 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);
166 template <typename T> 163 template <typename T>
167 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);
168 template <template <typename> class PointerType, typename T> 165 template <template <typename> class PointerType, typename T>
169 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);
170 }; 167 };
171 168
172 } 169 }
173 170
174 #endif // Dictionary_h 171 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8Binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698