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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | third_party/WebKit/Source/bindings/core/v8/Nullable.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 28 matching lines...) Expand all
39 #include "wtf/text/AtomicString.h" 39 #include "wtf/text/AtomicString.h"
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 #include <v8.h> 41 #include <v8.h>
42 42
43 namespace blink { 43 namespace blink {
44 44
45 // Dictionary class provides ways to retrieve property values as C++ objects 45 // Dictionary class provides ways to retrieve property values as C++ objects
46 // from a V8 object. Instances of this class must not outlive V8's handle scope 46 // from a V8 object. Instances of this class must not outlive V8's handle scope
47 // because they hold a V8 value without putting it on persistent handles. 47 // because they hold a V8 value without putting it on persistent handles.
48 class CORE_EXPORT Dictionary final { 48 class CORE_EXPORT Dictionary final {
49 ALLOW_ONLY_INLINE_ALLOCATION(); 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
50 public: 50 public:
51 Dictionary(); 51 Dictionary();
52 Dictionary(const v8::Local<v8::Value>& options, v8::Isolate*, ExceptionState &); 52 Dictionary(const v8::Local<v8::Value>& options, v8::Isolate*, ExceptionState &);
53 ~Dictionary(); 53 ~Dictionary();
54 54
55 Dictionary& operator=(const Dictionary&); 55 Dictionary& operator=(const Dictionary&);
56 56
57 bool isObject() const; 57 bool isObject() const;
58 bool isUndefinedOrNull() const; 58 bool isUndefinedOrNull() const;
59 59
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return false; 110 return false;
111 return DictionaryHelper::get(dictionary, key, value); 111 return DictionaryHelper::get(dictionary, key, value);
112 } 112 }
113 template <template <typename> class PointerType, typename T> 113 template <template <typename> class PointerType, typename T>
114 static bool get(const Dictionary&, const String& key, PointerType<T>& value) ; 114 static bool get(const Dictionary&, const String& key, PointerType<T>& value) ;
115 }; 115 };
116 116
117 } 117 }
118 118
119 #endif // Dictionary_h 119 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/Nullable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698