| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class CORE_EXPORT TraceWrapperBase { | 44 class CORE_EXPORT TraceWrapperBase { |
| 45 WTF_MAKE_NONCOPYABLE(TraceWrapperBase); | 45 WTF_MAKE_NONCOPYABLE(TraceWrapperBase); |
| 46 | 46 |
| 47 public: | 47 public: |
| 48 TraceWrapperBase() = default; | 48 TraceWrapperBase() = default; |
| 49 | 49 |
| 50 DECLARE_VIRTUAL_TRACE_WRAPPERS(){}; | 50 DECLARE_VIRTUAL_TRACE_WRAPPERS(){}; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // ScriptWrappable provides a way to map from/to C++ DOM implementation to/from | 53 // ScriptWrappable provides a way to map from/to C++ DOM implementation to/from |
| 54 // JavaScript object (platform object). toV8() converts a ScriptWrappable to | 54 // JavaScript object (platform object). ToV8() converts a ScriptWrappable to |
| 55 // a v8::Object and toScriptWrappable() converts a v8::Object back to | 55 // a v8::Object and toScriptWrappable() converts a v8::Object back to |
| 56 // a ScriptWrappable. v8::Object as platform object is called "wrapper object". | 56 // a ScriptWrappable. v8::Object as platform object is called "wrapper object". |
| 57 // The wrapepr object for the main world is stored in ScriptWrappable. Wrapper | 57 // The wrapepr object for the main world is stored in ScriptWrappable. Wrapper |
| 58 // objects for other worlds are stored in DOMWrapperMap. | 58 // objects for other worlds are stored in DOMWrapperMap. |
| 59 class CORE_EXPORT ScriptWrappable : public TraceWrapperBase { | 59 class CORE_EXPORT ScriptWrappable : public TraceWrapperBase { |
| 60 WTF_MAKE_NONCOPYABLE(ScriptWrappable); | 60 WTF_MAKE_NONCOPYABLE(ScriptWrappable); |
| 61 | 61 |
| 62 public: | 62 public: |
| 63 ScriptWrappable() {} | 63 ScriptWrappable() {} |
| 64 | 64 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 #define DECLARE_WRAPPERTYPEINFO() \ | 206 #define DECLARE_WRAPPERTYPEINFO() \ |
| 207 public: \ | 207 public: \ |
| 208 const WrapperTypeInfo* wrapperTypeInfo() const override; \ | 208 const WrapperTypeInfo* wrapperTypeInfo() const override; \ |
| 209 \ | 209 \ |
| 210 private: \ | 210 private: \ |
| 211 typedef void end_of_define_wrappertypeinfo_not_reached_t | 211 typedef void end_of_define_wrappertypeinfo_not_reached_t |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| 214 | 214 |
| 215 #endif // ScriptWrappable_h | 215 #endif // ScriptWrappable_h |
| OLD | NEW |