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 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // | 256 // |
257 // If a DOM class T does not inherit from ScriptWrappable, you have to write | 257 // If a DOM class T does not inherit from ScriptWrappable, you have to write |
258 // [NotScriptWrappable] in the IDL file as an extended attribute in order to let | 258 // [NotScriptWrappable] in the IDL file as an extended attribute in order to let |
259 // IDL code generator know that T does not inherit from ScriptWrappable. Note | 259 // IDL code generator know that T does not inherit from ScriptWrappable. Note |
260 // that [NotScriptWrappable] is inheritable. | 260 // that [NotScriptWrappable] is inheritable. |
261 // | 261 // |
262 // All the derived classes of ScriptWrappable, regardless of directly or | 262 // All the derived classes of ScriptWrappable, regardless of directly or |
263 // indirectly, must write this macro in the class definition. | 263 // indirectly, must write this macro in the class definition. |
264 #define DEFINE_WRAPPERTYPEINFO() \ | 264 #define DEFINE_WRAPPERTYPEINFO() \ |
265 public: \ | 265 public: \ |
266 virtual const WrapperTypeInfo* wrapperTypeInfo() const OVERRIDE \ | 266 virtual const WrapperTypeInfo* wrapperTypeInfo() const override \ |
267 { \ | 267 { \ |
268 return &s_wrapperTypeInfo; \ | 268 return &s_wrapperTypeInfo; \ |
269 } \ | 269 } \ |
270 private: \ | 270 private: \ |
271 static const WrapperTypeInfo& s_wrapperTypeInfo | 271 static const WrapperTypeInfo& s_wrapperTypeInfo |
272 | 272 |
273 } // namespace blink | 273 } // namespace blink |
274 | 274 |
275 #endif // ScriptWrappable_h | 275 #endif // ScriptWrappable_h |
OLD | NEW |