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 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef DartHandleProxy_h | 31 #ifndef DartHandleProxy_h |
32 #define DartHandleProxy_h | 32 #define DartHandleProxy_h |
33 | 33 |
34 #include <dart_api.h> | 34 #include <dart_api.h> |
35 #include <dart_mirrors_api.h> | 35 #include <dart_mirrors_api.h> |
36 #include <v8.h> | 36 #include <v8.h> |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
| 40 class Node; |
| 41 |
40 class DartHandleProxy { | 42 class DartHandleProxy { |
41 public: | 43 public: |
42 static v8::Handle<v8::Value> create(Dart_Handle value); | 44 static v8::Handle<v8::Value> create(Dart_Handle value); |
43 static v8::Handle<v8::Value> createForLibrary(intptr_t libraryId); | 45 static v8::Handle<v8::Value> createTypeProxy(Dart_Handle value, bool showSta
tics); |
44 static void getMirrorAPI(v8::Handle<v8::Object> container); | 46 static v8::Handle<v8::Value> createLibraryProxy(Dart_Handle value, int32_t l
ibraryId, Dart_Handle prefix); |
| 47 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); |
| 48 |
| 49 static bool isDartProxy(v8::Handle<v8::Value>); |
| 50 static const char* getJavaScriptType(v8::Handle<v8::Value>); |
| 51 static Node* toNativeNode(v8::Handle<v8::Value>); |
45 }; | 52 }; |
46 | 53 |
47 } | 54 } |
48 | 55 |
49 #endif // DartHandleProxy_h | 56 #endif // DartHandleProxy_h |
OLD | NEW |