Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 16 matching lines...) Expand all Loading... | |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebArrayBufferConverter_h | 31 #ifndef WebArrayBufferConverter_h |
| 32 #define WebArrayBufferConverter_h | 32 #define WebArrayBufferConverter_h |
| 33 | 33 |
| 34 #include "public/platform/WebArrayBuffer.h" | 34 #include "public/platform/WebArrayBuffer.h" |
| 35 | 35 |
| 36 namespace v8 { | 36 namespace v8 { |
| 37 class Isolate; | |
| 38 class Object; | |
| 37 class Value; | 39 class Value; |
| 38 template <class T> class Handle; | 40 template <class T> class Handle; |
| 39 } | 41 } |
| 40 | 42 |
| 41 namespace blink { | 43 namespace blink { |
| 42 | 44 |
| 43 class WebArrayBufferConverter { | 45 class WebArrayBufferConverter { |
| 44 public: | 46 public: |
| 45 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*); | 47 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*); |
| 46 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>) ; | 48 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>) ; |
|
haraken
2014/05/29 10:38:19
Shall we add a FIXME to remove these APIs once the
jochen (gone - plz use gerrit)
2014/06/02 07:33:59
yes, please
tasak
2014/06/02 10:36:44
Done.
| |
| 49 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*, v8::Han dle<v8::Object>, v8::Isolate*); | |
| 50 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>, v8::Isolate*); | |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace blink | 53 } // namespace blink |
| 50 | 54 |
| 51 #endif // WebArrayBufferConverter_h | 55 #endif // WebArrayBufferConverter_h |
| OLD | NEW |