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

Unified Diff: runtime/bin/file_system_watcher_win.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_system_watcher_unsupported.cc ('k') | runtime/bin/file_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_system_watcher_win.cc
diff --git a/runtime/bin/file_system_watcher_win.cc b/runtime/bin/file_system_watcher_win.cc
index ebbb207808cccf252ac8ff5667464237db112e3e..dad55c60e7afb76ba118d181b682b5d3ab99fd18 100644
--- a/runtime/bin/file_system_watcher_win.cc
+++ b/runtime/bin/file_system_watcher_win.cc
@@ -24,17 +24,14 @@ bool FileSystemWatcher::IsSupported() {
return true;
}
-
intptr_t FileSystemWatcher::Init() {
return 0;
}
-
void FileSystemWatcher::Close(intptr_t id) {
USE(id);
}
-
intptr_t FileSystemWatcher::WatchPath(intptr_t id,
const char* path,
int events,
@@ -67,7 +64,6 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id,
return reinterpret_cast<intptr_t>(handle);
}
-
void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {
USE(id);
DirectoryWatchHandle* handle =
@@ -75,13 +71,11 @@ void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {
handle->Stop();
}
-
intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) {
USE(id);
return path_id;
}
-
Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
USE(id);
const intptr_t kEventSize = sizeof(FILE_NOTIFY_INFORMATION);
@@ -117,9 +111,10 @@ Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
Dart_ListSetAt(event, 0, Dart_NewInteger(mask));
// Move events come in pairs. Just 'enable' by default.
Dart_ListSetAt(event, 1, Dart_NewInteger(1));
- Dart_ListSetAt(event, 2, Dart_NewStringFromUTF16(
- reinterpret_cast<uint16_t*>(e->FileName),
- e->FileNameLength / 2));
+ Dart_ListSetAt(
+ event, 2,
+ Dart_NewStringFromUTF16(reinterpret_cast<uint16_t*>(e->FileName),
+ e->FileNameLength / 2));
Dart_ListSetAt(event, 3, Dart_NewBoolean(true));
Dart_ListSetAt(event, 4, Dart_NewInteger(path_id));
Dart_ListSetAt(events, i, event);
« no previous file with comments | « runtime/bin/file_system_watcher_unsupported.cc ('k') | runtime/bin/file_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698