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

Side by Side Diff: runtime/bin/dartutils.h

Issue 169383003: Make event-handlers edge-triggered and move socket-state to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months 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
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 134 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
135 Dart_Handle library, 135 Dart_Handle library,
136 Dart_Handle url, 136 Dart_Handle url,
137 Dart_LibraryTag tag, 137 Dart_LibraryTag tag,
138 const char* filename); 138 const char* filename);
139 static Dart_Handle PrepareForScriptLoading(const char* package_root, 139 static Dart_Handle PrepareForScriptLoading(const char* package_root,
140 Dart_Handle builtin_lib); 140 Dart_Handle builtin_lib);
141 141
142 static bool PostNull(Dart_Port port_id); 142 static bool PostNull(Dart_Port port_id);
143 static bool PostInt32(Dart_Port port_id, int32_t value); 143 static bool PostInt32(Dart_Port port_id, int32_t value);
144 static bool PostInt64(Dart_Port port_id, int64_t value);
144 145
145 static Dart_Handle GetDartType(const char* library_url, 146 static Dart_Handle GetDartType(const char* library_url,
146 const char* class_name); 147 const char* class_name);
147 // Create a new Dart OSError object with the current OS error. 148 // Create a new Dart OSError object with the current OS error.
148 static Dart_Handle NewDartOSError(); 149 static Dart_Handle NewDartOSError();
149 // Create a new Dart OSError object with the provided OS error. 150 // Create a new Dart OSError object with the provided OS error.
150 static Dart_Handle NewDartOSError(OSError* os_error); 151 static Dart_Handle NewDartOSError(OSError* os_error);
151 static Dart_Handle NewDartExceptionWithOSError(const char* library_url, 152 static Dart_Handle NewDartExceptionWithOSError(const char* library_url,
152 const char* exception_name, 153 const char* exception_name,
153 const char* message, 154 const char* message,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 542 }
542 543
543 private: 544 private:
544 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 545 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
545 }; 546 };
546 547
547 } // namespace bin 548 } // namespace bin
548 } // namespace dart 549 } // namespace dart
549 550
550 #endif // BIN_DARTUTILS_H_ 551 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698