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

Unified Diff: ppapi/thunk/ppb_file_io_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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
Index: ppapi/thunk/ppb_file_io_thunk.cc
diff --git a/ppapi/thunk/ppb_file_io_thunk.cc b/ppapi/thunk/ppb_file_io_thunk.cc
index 9e5c6e8fed22d5c08fc3273ee2656c2298bbc9bd..3451c52b08545819e3378f3068787c8ef48dcd7d 100644
--- a/ppapi/thunk/ppb_file_io_thunk.cc
+++ b/ppapi/thunk/ppb_file_io_thunk.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From ppb_file_io.idl modified Thu Oct 31 12:30:06 2013.
+// From ppb_file_io.idl modified Mon Nov 11 16:02:07 2013.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -39,9 +39,8 @@ int32_t Open(PP_Resource file_io,
EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Open(file_ref,
- open_flags,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->Open(file_ref, open_flags, enter.callback()));
}
int32_t Query(PP_Resource file_io,
@@ -62,9 +61,8 @@ int32_t Touch(PP_Resource file_io,
EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Touch(last_access_time,
- last_modified_time,
- enter.callback()));
+ return enter.SetResult(enter.object()->Touch(
+ last_access_time, last_modified_time, enter.callback()));
}
int32_t Read(PP_Resource file_io,
@@ -76,10 +74,8 @@ int32_t Read(PP_Resource file_io,
EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Read(offset,
- buffer,
- bytes_to_read,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->Read(offset, buffer, bytes_to_read, enter.callback()));
}
int32_t Write(PP_Resource file_io,
@@ -91,10 +87,8 @@ int32_t Write(PP_Resource file_io,
EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Write(offset,
- buffer,
- bytes_to_write,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->Write(offset, buffer, bytes_to_write, enter.callback()));
}
int32_t SetLength(PP_Resource file_io,
@@ -132,37 +126,35 @@ int32_t ReadToArray(PP_Resource file_io,
EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->ReadToArray(offset,
- max_read_length,
- output,
- enter.callback()));
+ return enter.SetResult(enter.object()->ReadToArray(
+ offset, max_read_length, output, enter.callback()));
}
-const PPB_FileIO_1_0 g_ppb_fileio_thunk_1_0 = {
- &Create,
- &IsFileIO,
- &Open,
- &Query,
- &Touch,
- &Read,
- &Write,
- &SetLength,
- &Flush,
- &Close
+const PPB_FileIO_1_0 g_ppb_fileio_thunk_1_0 = { //
+ &Create, //
+ &IsFileIO, //
+ &Open, //
+ &Query, //
+ &Touch, //
+ &Read, //
+ &Write, //
+ &SetLength, //
+ &Flush, //
+ &Close //
};
-const PPB_FileIO_1_1 g_ppb_fileio_thunk_1_1 = {
- &Create,
- &IsFileIO,
- &Open,
- &Query,
- &Touch,
- &Read,
- &Write,
- &SetLength,
- &Flush,
- &Close,
- &ReadToArray
+const PPB_FileIO_1_1 g_ppb_fileio_thunk_1_1 = { //
+ &Create, //
+ &IsFileIO, //
+ &Open, //
+ &Query, //
+ &Touch, //
+ &Read, //
+ &Write, //
+ &SetLength, //
+ &Flush, //
+ &Close, //
+ &ReadToArray //
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698