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

Side by Side Diff: runtime/bin/io_natives.cc

Issue 19263003: Add FileSystemWatcher class to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix android socket. Created 7 years, 3 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 | « runtime/bin/file_system_watcher_win.cc ('k') | runtime/bin/socket.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "bin/io_natives.h" 5 #include "bin/io_natives.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 V(Socket_Available, 1) \ 61 V(Socket_Available, 1) \
62 V(Socket_Read, 2) \ 62 V(Socket_Read, 2) \
63 V(Socket_WriteList, 4) \ 63 V(Socket_WriteList, 4) \
64 V(Socket_GetPort, 1) \ 64 V(Socket_GetPort, 1) \
65 V(Socket_GetRemotePeer, 1) \ 65 V(Socket_GetRemotePeer, 1) \
66 V(Socket_GetError, 1) \ 66 V(Socket_GetError, 1) \
67 V(Socket_GetStdioHandle, 2) \ 67 V(Socket_GetStdioHandle, 2) \
68 V(Socket_NewServicePort, 0) \ 68 V(Socket_NewServicePort, 0) \
69 V(Socket_GetType, 1) \ 69 V(Socket_GetType, 1) \
70 V(Socket_SetOption, 3) \ 70 V(Socket_SetOption, 3) \
71 V(Socket_SetSocketId, 2) \
71 V(Stdin_ReadByte, 1) \ 72 V(Stdin_ReadByte, 1) \
72 V(Stdin_SetEchoMode, 2) \ 73 V(Stdin_SetEchoMode, 2) \
73 V(Stdin_SetLineMode, 2) \ 74 V(Stdin_SetLineMode, 2) \
74 V(StringToSystemEncoding, 1) \ 75 V(StringToSystemEncoding, 1) \
75 V(SystemEncodingToString, 1) 76 V(SystemEncodingToString, 1)
76 77
77 78
78 IO_NATIVE_LIST(DECLARE_FUNCTION); 79 IO_NATIVE_LIST(DECLARE_FUNCTION);
79 80
80 static struct NativeEntries { 81 static struct NativeEntries {
(...skipping 17 matching lines...) Expand all
98 if (!strcmp(function_name, entry->name_) && 99 if (!strcmp(function_name, entry->name_) &&
99 (entry->argument_count_ == argument_count)) { 100 (entry->argument_count_ == argument_count)) {
100 return reinterpret_cast<Dart_NativeFunction>(entry->function_); 101 return reinterpret_cast<Dart_NativeFunction>(entry->function_);
101 } 102 }
102 } 103 }
103 return NULL; 104 return NULL;
104 } 105 }
105 106
106 } // namespace bin 107 } // namespace bin
107 } // namespace dart 108 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/file_system_watcher_win.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698