| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 5 #ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
| 6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
| 7 | 7 |
| 8 #include "dart_api.h" | 8 #include "dart_api.h" |
| 9 | 9 |
| 10 /** \mainpage Dart Tools Embedding API Reference | 10 /** \mainpage Dart Tools Embedding API Reference |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 /** | 899 /** |
| 900 * A callback which determines whether the file at some url has been | 900 * A callback which determines whether the file at some url has been |
| 901 * modified since some time. If the file cannot be found, true should | 901 * modified since some time. If the file cannot be found, true should |
| 902 * be returned. | 902 * be returned. |
| 903 */ | 903 */ |
| 904 typedef bool (*Dart_FileModifiedCallback)(const char* url, int64_t since); | 904 typedef bool (*Dart_FileModifiedCallback)(const char* url, int64_t since); |
| 905 | 905 |
| 906 DART_EXPORT Dart_Handle | 906 DART_EXPORT Dart_Handle |
| 907 Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_modified_callback); | 907 Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_modified_callback); |
| 908 | 908 |
| 909 /** |
| 910 * Returns true if isolate is currently reloading. |
| 911 */ |
| 912 DART_EXPORT bool Dart_IsReloading(); |
| 913 |
| 909 /* | 914 /* |
| 910 * ======== | 915 * ======== |
| 911 * Timeline | 916 * Timeline |
| 912 * ======== | 917 * ======== |
| 913 */ | 918 */ |
| 914 | 919 |
| 915 /** | 920 /** |
| 916 * Returns a timestamp in microseconds. This timestamp is suitable for | 921 * Returns a timestamp in microseconds. This timestamp is suitable for |
| 917 * passing into the timeline system. | 922 * passing into the timeline system. |
| 918 * | 923 * |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 * \param start_recording See Dart_EmbedderTimelineStartRecording. | 1072 * \param start_recording See Dart_EmbedderTimelineStartRecording. |
| 1068 * \param stop_recording See Dart_EmbedderTimelineStopRecording. | 1073 * \param stop_recording See Dart_EmbedderTimelineStopRecording. |
| 1069 * | 1074 * |
| 1070 * NOTE: To avoid races, this should be called before Dart_Initialize. | 1075 * NOTE: To avoid races, this should be called before Dart_Initialize. |
| 1071 */ | 1076 */ |
| 1072 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( | 1077 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( |
| 1073 Dart_EmbedderTimelineStartRecording start_recording, | 1078 Dart_EmbedderTimelineStartRecording start_recording, |
| 1074 Dart_EmbedderTimelineStopRecording stop_recording); | 1079 Dart_EmbedderTimelineStopRecording stop_recording); |
| 1075 | 1080 |
| 1076 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 1081 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
| OLD | NEW |