Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: runtime/include/dart_api.h

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 /** 976 /**
977 * Handles the next pending message for the current isolate. 977 * Handles the next pending message for the current isolate.
978 * 978 *
979 * May generate an unhandled exception error. 979 * May generate an unhandled exception error.
980 * 980 *
981 * \return A valid handle if no error occurs during the operation. 981 * \return A valid handle if no error occurs during the operation.
982 */ 982 */
983 DART_EXPORT Dart_Handle Dart_HandleMessage(); 983 DART_EXPORT Dart_Handle Dart_HandleMessage();
984 984
985 /** 985 /**
986 * Handles any pending messages for the vm service for the current
987 * isolate.
988 *
989 * This function may be used by an embedder at a breakpoint to avoid
990 * pausing the vm service.
991 *
992 * \return true if the vm service requests the program resume
993 * execution, false otherwise
994 */
995 DART_EXPORT bool Dart_HandleServiceMessages();
996
997 /**
986 * Processes any incoming messages for the current isolate. 998 * Processes any incoming messages for the current isolate.
987 * 999 *
988 * This function may only be used when the embedder has not provided 1000 * This function may only be used when the embedder has not provided
989 * an alternate message delivery mechanism with 1001 * an alternate message delivery mechanism with
990 * Dart_SetMessageCallbacks. It is provided for convenience. 1002 * Dart_SetMessageCallbacks. It is provided for convenience.
991 * 1003 *
992 * This function waits for incoming messages for the current 1004 * This function waits for incoming messages for the current
993 * isolate. As new messages arrive, they are handled using 1005 * isolate. As new messages arrive, they are handled using
994 * Dart_HandleMessage. The routine exits when all ports to the 1006 * Dart_HandleMessage. The routine exits when all ports to the
995 * current isolate are closed. 1007 * current isolate are closed.
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 * 2357 *
2346 * \param object An object. 2358 * \param object An object.
2347 * \param peer A value to store in the peer field. 2359 * \param peer A value to store in the peer field.
2348 * 2360 *
2349 * \return Returns an error if 'object' is a subtype of Null, num, or 2361 * \return Returns an error if 'object' is a subtype of Null, num, or
2350 * bool. 2362 * bool.
2351 */ 2363 */
2352 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2364 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2353 2365
2354 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2366 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.html ('k') | runtime/include/dart_debugger_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698