| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ | 5 #ifndef EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ |
| 6 #define EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ | 6 #define EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #include "embedders/openglui/common/events.h" | 10 #include "embedders/openglui/common/events.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 char** error); | 46 char** error); |
| 47 static bool CreateIsolateAndSetup(const char* script_uri, | 47 static bool CreateIsolateAndSetup(const char* script_uri, |
| 48 const char* main, | 48 const char* main, |
| 49 void* data, char** error); | 49 void* data, char** error); |
| 50 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 50 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 51 Dart_Handle library, | 51 Dart_Handle library, |
| 52 Dart_Handle urlHandle); | 52 Dart_Handle urlHandle); |
| 53 static Dart_Handle LoadSourceFromFile(const char* url); | 53 static Dart_Handle LoadSourceFromFile(const char* url); |
| 54 static void ShutdownIsolate(void* callback_data); | 54 static void ShutdownIsolate(void* callback_data); |
| 55 | 55 |
| 56 static bool initialized_vm_; |
| 56 ISized* surface_; | 57 ISized* surface_; |
| 57 Dart_Isolate isolate_; | 58 Dart_Isolate isolate_; |
| 58 bool initialized_vm_; | |
| 59 bool initialized_script_; | 59 bool initialized_script_; |
| 60 char* main_script_; | 60 char* main_script_; |
| 61 static char* extension_script_; | 61 static char* extension_script_; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ | 64 #endif // EMBEDDERS_OPENGLUI_COMMON_VM_GLUE_H_ |
| 65 | 65 |
| OLD | NEW |