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

Unified Diff: third_party/WebKit/Source/core/fileapi/File.cpp

Issue 2394653003: reflow comments in core/events,core/fileapi (Closed)
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/Source/core/fileapi/File.h ('k') | third_party/WebKit/Source/core/fileapi/FileError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fileapi/File.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/File.cpp b/third_party/WebKit/Source/core/fileapi/File.cpp
index 8d7e7cb9cc7331ef8c81257e335beefdbba09028..cc3081cabcc71d8bc7d8dab94744b9284e54b73c 100644
--- a/third_party/WebKit/Source/core/fileapi/File.cpp
+++ b/third_party/WebKit/Source/core/fileapi/File.cpp
@@ -256,7 +256,8 @@ double File::lastModifiedMS() const {
long long File::lastModified() const {
double modifiedDate = lastModifiedMS();
- // The getter should return the current time when the last modification time isn't known.
+ // The getter should return the current time when the last modification time
+ // isn't known.
if (!isValidFileTime(modifiedDate))
modifiedDate = currentTimeMS();
@@ -268,7 +269,8 @@ long long File::lastModified() const {
double File::lastModifiedDate() const {
double modifiedDate = lastModifiedMS();
- // The getter should return the current time when the last modification time isn't known.
+ // The getter should return the current time when the last modification time
+ // isn't known.
if (!isValidFileTime(modifiedDate))
modifiedDate = currentTimeMS();
@@ -281,8 +283,9 @@ unsigned long long File::size() const {
if (hasValidSnapshotMetadata())
return m_snapshotSize;
- // FIXME: JavaScript cannot represent sizes as large as unsigned long long, we need to
- // come up with an exception to throw if file size is not representable.
+ // FIXME: JavaScript cannot represent sizes as large as unsigned long long, we
+ // need to come up with an exception to throw if file size is not
+ // representable.
long long size;
if (!hasBackingFile() || !getFileSize(m_path, size))
return 0;
@@ -302,7 +305,8 @@ Blob* File::slice(long long start,
if (!m_hasBackingFile)
return Blob::slice(start, end, contentType, exceptionState);
- // FIXME: This involves synchronous file operation. We need to figure out how to make it asynchronous.
+ // FIXME: This involves synchronous file operation. We need to figure out how
+ // to make it asynchronous.
long long size;
double modificationTimeMS;
captureSnapshot(size, modificationTimeMS);
@@ -330,8 +334,10 @@ void File::captureSnapshot(long long& snapshotSize,
return;
}
- // Obtains a snapshot of the file by capturing its current size and modification time. This is used when we slice a file for the first time.
- // If we fail to retrieve the size or modification time, probably due to that the file has been deleted, 0 size is returned.
+ // Obtains a snapshot of the file by capturing its current size and
+ // modification time. This is used when we slice a file for the first time.
+ // If we fail to retrieve the size or modification time, probably due to that
+ // the file has been deleted, 0 size is returned.
FileMetadata metadata;
if (!hasBackingFile() || !getFileMetadata(m_path, metadata)) {
snapshotSize = 0;
@@ -368,7 +374,8 @@ void File::appendTo(BlobData& blobData) const {
return;
}
- // FIXME: This involves synchronous file operation. We need to figure out how to make it asynchronous.
+ // FIXME: This involves synchronous file operation. We need to figure out how
+ // to make it asynchronous.
long long size;
double modificationTimeMS;
captureSnapshot(size, modificationTimeMS);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/File.h ('k') | third_party/WebKit/Source/core/fileapi/FileError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698