| OLD | NEW |
| 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 | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 OnInstance = 1 << 0, | 55 OnInstance = 1 << 0, |
| 56 OnPrototype = 1 << 1, | 56 OnPrototype = 1 << 1, |
| 57 OnInterface = 1 << 2, | 57 OnInterface = 1 << 2, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 enum HolderCheckConfiguration { | 60 enum HolderCheckConfiguration { |
| 61 CheckHolder, | 61 CheckHolder, |
| 62 DoNotCheckHolder, | 62 DoNotCheckHolder, |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // AttributeConfiguration translates into calls to SetAccessor() on either | 65 // AttributeConfiguration translates into calls to SetNativeDataProperty() o
n either |
| 66 // the instance or the prototype ObjectTemplate, based on |instanceOrPrototy
peConfiguration|. | 66 // the instance or the prototype ObjectTemplate, based on |instanceOrPrototy
peConfiguration|. |
| 67 struct AttributeConfiguration { | 67 struct AttributeConfiguration { |
| 68 AttributeConfiguration& operator=(const AttributeConfiguration&) = delet
e; | 68 AttributeConfiguration& operator=(const AttributeConfiguration&) = delet
e; |
| 69 DISALLOW_NEW(); | 69 DISALLOW_NEW(); |
| 70 const char* const name; | 70 const char* const name; |
| 71 v8::AccessorNameGetterCallback getter; | 71 v8::AccessorNameGetterCallback getter; |
| 72 v8::AccessorNameSetterCallback setter; | 72 v8::AccessorNameSetterCallback setter; |
| 73 v8::AccessorNameGetterCallback getterForMainWorld; | 73 v8::AccessorNameGetterCallback getterForMainWorld; |
| 74 v8::AccessorNameSetterCallback setterForMainWorld; | 74 v8::AccessorNameSetterCallback setterForMainWorld; |
| 75 const WrapperTypeInfo* data; | 75 const WrapperTypeInfo* data; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 static v8::Local<v8::FunctionTemplate> domClassTemplate(v8::Isolate*, Wrappe
rTypeInfo*, void (*)(v8::Local<v8::FunctionTemplate>, v8::Isolate*)); | 195 static v8::Local<v8::FunctionTemplate> domClassTemplate(v8::Isolate*, Wrappe
rTypeInfo*, void (*)(v8::Local<v8::FunctionTemplate>, v8::Isolate*)); |
| 196 | 196 |
| 197 // Sets the class string of platform objects, interface prototype objects, e
tc. | 197 // Sets the class string of platform objects, interface prototype objects, e
tc. |
| 198 // See also http://heycam.github.io/webidl/#dfn-class-string | 198 // See also http://heycam.github.io/webidl/#dfn-class-string |
| 199 static void setClassString(v8::Isolate*, v8::Local<v8::ObjectTemplate>, cons
t char* classString); | 199 static void setClassString(v8::Isolate*, v8::Local<v8::ObjectTemplate>, cons
t char* classString); |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 } // namespace blink | 202 } // namespace blink |
| 203 | 203 |
| 204 #endif // V8DOMConfiguration_h | 204 #endif // V8DOMConfiguration_h |
| OLD | NEW |