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

Side by Side Diff: Source/bindings/v8/V8HiddenPropertyName.h

Issue 16838012: [ABANDONED] Implement Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « Source/bindings/bindings.gypi ('k') | Source/bindings/v8/V8PromiseUtilities.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include <v8.h> 34 #include <v8.h>
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 #define V8_HIDDEN_PROPERTIES(V) \ 38 #define V8_HIDDEN_PROPERTIES(V) \
39 V(attributeListener) \ 39 V(attributeListener) \
40 V(callback) \ 40 V(callback) \
41 V(detail) \ 41 V(detail) \
42 V(document) \ 42 V(document) \
43 V(event) \ 43 V(event) \
44 V(jsConstructor) \
45 V(jsImplementation) \
44 V(listener) \ 46 V(listener) \
45 V(scriptState) \ 47 V(scriptState) \
46 V(sleepFunction) \ 48 V(sleepFunction) \
47 V(state) \ 49 V(state) \
48 V(adaptorFunctionPeer) \ 50 V(adaptorFunctionPeer) \
49 V(toStringString) \ 51 V(toStringString) \
50 V(typedArrayHiddenCopyMethod) 52 V(typedArrayHiddenCopyMethod)
51 53
52 class V8HiddenPropertyName { 54 class V8HiddenPropertyName {
53 public: 55 public:
54 V8HiddenPropertyName() { } 56 V8HiddenPropertyName() { }
55 #define V8_DECLARE_PROPERTY(name) static v8::Handle<v8::String> name(); 57 #define V8_DECLARE_PROPERTY(name) static v8::Handle<v8::String> name();
56 V8_HIDDEN_PROPERTIES(V8_DECLARE_PROPERTY); 58 V8_HIDDEN_PROPERTIES(V8_DECLARE_PROPERTY);
57 #undef V8_DECLARE_PROPERTY 59 #undef V8_DECLARE_PROPERTY
58 60
59 static void setNamedHiddenReference(v8::Handle<v8::Object> parent, const cha r* name, v8::Handle<v8::Value> child); 61 static void setNamedHiddenReference(v8::Handle<v8::Object> parent, const cha r* name, v8::Handle<v8::Value> child);
60 62
61 private: 63 private:
62 static void createString(const char* key, v8::Persistent<v8::String>* handle ); 64 static void createString(const char* key, v8::Persistent<v8::String>* handle );
63 #define V8_DECLARE_FIELD(name) v8::Persistent<v8::String> m_##name; 65 #define V8_DECLARE_FIELD(name) v8::Persistent<v8::String> m_##name;
64 V8_HIDDEN_PROPERTIES(V8_DECLARE_FIELD); 66 V8_HIDDEN_PROPERTIES(V8_DECLARE_FIELD);
65 #undef V8_DECLARE_FIELD 67 #undef V8_DECLARE_FIELD
66 }; 68 };
67 69
68 } 70 }
69 71
70 #endif // V8HiddenPropertyName_h 72 #endif // V8HiddenPropertyName_h
OLDNEW
« no previous file with comments | « Source/bindings/bindings.gypi ('k') | Source/bindings/v8/V8PromiseUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698