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 26 matching lines...) Expand all Loading... |
37 class Isolate; | 37 class Isolate; |
38 class Object; | 38 class Object; |
39 class Value; | 39 class Value; |
40 template <class T> class Handle; | 40 template <class T> class Handle; |
41 } | 41 } |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class WebArrayBufferConverter { | 45 class WebArrayBufferConverter { |
46 public: | 46 public: |
47 // FIXME: remove these two APIs which doesn't take either context or | |
48 // isolate as their parameters after the embedder side is fixed. | |
49 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*); | |
50 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>)
; | |
51 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*, v8::Han
dle<v8::Object>, v8::Isolate*); | 47 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*, v8::Han
dle<v8::Object>, v8::Isolate*); |
52 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>,
v8::Isolate*); | 48 BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>,
v8::Isolate*); |
53 }; | 49 }; |
54 | 50 |
55 } // namespace blink | 51 } // namespace blink |
56 | 52 |
57 #endif // WebArrayBufferConverter_h | 53 #endif // WebArrayBufferConverter_h |
OLD | NEW |