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

Unified Diff: ppapi/thunk/ppb_truetype_font_dev_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_truetype_font_dev_thunk.cc
diff --git a/ppapi/thunk/ppb_truetype_font_dev_thunk.cc b/ppapi/thunk/ppb_truetype_font_dev_thunk.cc
index fec60115a20581962b01d594be26b4650b1de08c..12589bd1b472995522a042f0c6516f5a21bec2d0 100644
--- a/ppapi/thunk/ppb_truetype_font_dev_thunk.cc
+++ b/ppapi/thunk/ppb_truetype_font_dev_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 dev/ppb_truetype_font_dev.idl modified Thu Oct 31 12:30:06 2013.
+// From dev/ppb_truetype_font_dev.idl modified Fri Nov 1 16:12:12 2013.
#include "ppapi/c/dev/ppb_truetype_font_dev.h"
#include "ppapi/c/pp_completion_callback.h"
@@ -25,10 +25,8 @@ int32_t GetFontFamilies(PP_Instance instance,
EnterInstanceAPI<PPB_TrueTypeFont_Singleton_API> enter(instance, callback);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.functions()->GetFontFamilies(
- instance,
- output,
- enter.callback()));
+ return enter.SetResult(
+ enter.functions()->GetFontFamilies(instance, output, enter.callback()));
}
int32_t GetFontsInFamily(PP_Instance instance,
@@ -40,10 +38,7 @@ int32_t GetFontsInFamily(PP_Instance instance,
if (enter.failed())
return enter.retval();
return enter.SetResult(enter.functions()->GetFontsInFamily(
- instance,
- family,
- output,
- enter.callback()));
+ instance, family, output, enter.callback()));
}
PP_Resource Create(PP_Instance instance,
@@ -78,8 +73,8 @@ int32_t GetTableTags(PP_Resource font,
EnterResource<PPB_TrueTypeFont_API> enter(font, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->GetTableTags(output,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->GetTableTags(output, enter.callback()));
}
int32_t GetTable(PP_Resource font,
@@ -92,27 +87,24 @@ int32_t GetTable(PP_Resource font,
EnterResource<PPB_TrueTypeFont_API> enter(font, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->GetTable(table,
- offset,
- max_data_length,
- output,
- enter.callback()));
+ return enter.SetResult(enter.object()->GetTable(
+ table, offset, max_data_length, output, enter.callback()));
}
-const PPB_TrueTypeFont_Dev_0_1 g_ppb_truetypefont_dev_thunk_0_1 = {
- &GetFontFamilies,
- &GetFontsInFamily,
- &Create,
- &IsTrueTypeFont,
- &Describe,
- &GetTableTags,
- &GetTable
+const PPB_TrueTypeFont_Dev_0_1 g_ppb_truetypefont_dev_thunk_0_1 = { //
+ &GetFontFamilies, //
+ &GetFontsInFamily, //
+ &Create, //
+ &IsTrueTypeFont, //
+ &Describe, //
+ &GetTableTags, //
+ &GetTable //
};
} // namespace
PPAPI_THUNK_EXPORT const PPB_TrueTypeFont_Dev_0_1*
- GetPPB_TrueTypeFont_Dev_0_1_Thunk() {
+GetPPB_TrueTypeFont_Dev_0_1_Thunk() {
return &g_ppb_truetypefont_dev_thunk_0_1;
}

Powered by Google App Engine
This is Rietveld 408576698