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

Issue 19263003: Add FileSystemWatcher class to dart:io. (Closed)

Created:
7 years, 5 months ago by Anders Johnsen
Modified:
7 years, 3 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add FileSystemWatcher class to dart:io. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=27048

Patch Set 1 #

Patch Set 2 : Add windows impl. #

Patch Set 3 : Clean up impl and add test. #

Patch Set 4 : A few nit-pick changes #

Patch Set 5 : Add mac version #

Patch Set 6 : Update linux impl #

Patch Set 7 : Update impl and docs. #

Patch Set 8 : Merge with master. #

Patch Set 9 : Update Windows impl. #

Patch Set 10 : Cleanup #

Total comments: 12

Patch Set 11 : Simplify watching by removing FileSystemWatcher and adding #

Patch Set 12 : Simplify watching by removing FileSystemWatcher and adding FileSystemEntity.watch. #

Total comments: 27

Patch Set 13 : Cleanup of the id handling. #

Patch Set 14 : Merge #

Patch Set 15 : Update Windows impl to newest API. #

Patch Set 16 : Update docs. #

Patch Set 17 : Update Mac OS X impl. #

Total comments: 12

Patch Set 18 : Final cleanup. #

Patch Set 19 : Fix android socket. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1251 lines, -36 lines) Patch
M runtime/bin/builtin_impl_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +29 lines, -3 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
M runtime/bin/file_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +62 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +88 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +88 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher_macos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +256 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +101 lines, -0 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/directory_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -22 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/file_system_entity.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +233 lines, -2 lines 0 comments Download
A tests/standalone/io/file_system_watcher_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +250 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Anders Johnsen
Stuff that's missing: Overall: - Correct event path - and test. - Test of recursive ...
7 years, 4 months ago (2013-08-23 06:20:24 UTC) #1
Søren Gjesse
We should discuss the user-facing API. The general encapsulation of the file watching into the ...
7 years, 4 months ago (2013-08-23 07:47:45 UTC) #2
Søren Gjesse
This is getting really good! However I still think we can push it more in ...
7 years, 3 months ago (2013-08-26 07:51:55 UTC) #3
Anders Johnsen
PTAL https://codereview.chromium.org/19263003/diff/31001/runtime/bin/file_system_watcher_linux.cc File runtime/bin/file_system_watcher_linux.cc (right): https://codereview.chromium.org/19263003/diff/31001/runtime/bin/file_system_watcher_linux.cc#newcode46 runtime/bin/file_system_watcher_linux.cc:46: intptr_t FileSystemWatcher::ReadEvents(intptr_t id, Event** events) { On 2013/08/26 ...
7 years, 3 months ago (2013-09-03 11:36:23 UTC) #4
Søren Gjesse
LGTM! https://codereview.chromium.org/19263003/diff/48001/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/19263003/diff/48001/runtime/bin/socket_patch.dart#newcode374 runtime/bin/socket_patch.dart:374: setSocketId(id); Just call nativeSetSocketId here. https://codereview.chromium.org/19263003/diff/48001/runtime/bin/socket_patch.dart#newcode662 runtime/bin/socket_patch.dart:662: void ...
7 years, 3 months ago (2013-09-03 12:19:57 UTC) #5
Anders Johnsen
https://codereview.chromium.org/19263003/diff/48001/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/19263003/diff/48001/runtime/bin/socket_patch.dart#newcode374 runtime/bin/socket_patch.dart:374: setSocketId(id); On 2013/09/03 12:19:58, Søren Gjesse wrote: > Just ...
7 years, 3 months ago (2013-09-03 12:43:32 UTC) #6
Anders Johnsen
7 years, 3 months ago (2013-09-03 12:43:40 UTC) #7
Message was sent while issue was closed.
Committed patchset #19 manually as r27048 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698