| 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> createLibraryProxy(Dart_Handle value, int32_t l
ibraryId, Dart_Handle prefix); |
| 44 static void getMirrorAPI(v8::Handle<v8::Object> container); | 46 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); |
| 47 |
| 48 static bool isDartProxy(v8::Handle<v8::Value> value); |
| 49 static const char* getType(v8::Handle<v8::Value> value); |
| 50 static Node* toNativeNode(v8::Handle<v8::Value> value); |
| 45 }; | 51 }; |
| 46 | 52 |
| 47 } | 53 } |
| 48 | 54 |
| 49 #endif // DartHandleProxy_h | 55 #endif // DartHandleProxy_h |
| OLD | NEW |