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

Unified Diff: ppapi/thunk/ppb_pdf_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks 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_pdf_thunk.cc
diff --git a/ppapi/thunk/ppb_pdf_thunk.cc b/ppapi/thunk/ppb_pdf_thunk.cc
index a8aa0806b17be012637640ca30eb0af095b3a202..3b50b6fa11194112eedfe9e6d5b1e2a5d1f9ca82 100644
--- a/ppapi/thunk/ppb_pdf_thunk.cc
+++ b/ppapi/thunk/ppb_pdf_thunk.cc
@@ -23,8 +23,7 @@ PP_Var GetLocalizedString(PP_Instance instance, PP_ResourceString string_id) {
return enter.functions()->GetLocalizedString(string_id);
}
-PP_Resource GetResourceImage(PP_Instance instance,
- PP_ResourceImage image_id) {
+PP_Resource GetResourceImage(PP_Instance instance, PP_ResourceImage image_id) {
EnterInstanceAPI<PPB_PDF_API> enter(instance);
if (enter.failed())
return 0;
@@ -133,8 +132,7 @@ PP_Resource GetResourceImageForScale(PP_Instance instance,
return enter.functions()->GetResourceImageForScale(image_id, scale);
}
-PP_Var ModalPromptForPassword(PP_Instance instance_id,
- PP_Var message) {
+PP_Var ModalPromptForPassword(PP_Instance instance_id, PP_Var message) {
// TODO(raymes): Implement or remove this function.
NOTIMPLEMENTED();
return PP_MakeUndefined();
@@ -147,8 +145,7 @@ PP_Bool IsOutOfProcess(PP_Instance instance) {
return enter.functions()->IsOutOfProcess();
}
-void SetSelectedText(PP_Instance instance,
- const char* selected_text) {
+void SetSelectedText(PP_Instance instance, const char* selected_text) {
EnterInstanceAPI<PPB_PDF_API> enter(instance);
if (enter.succeeded())
enter.functions()->SetSelectedText(selected_text);
@@ -162,32 +159,20 @@ void SetLinkUnderCursor(PP_Instance instance, const char* url) {
}
const PPB_PDF g_ppb_pdf_thunk = {
- &GetLocalizedString,
- &GetResourceImage,
- &GetFontFileWithFallback,
- &GetFontTableForPrivateFontFile,
- &SearchString,
- &DidStartLoading,
- &DidStopLoading,
- &SetContentRestriction,
- &HistogramPDFPageCount,
- &UserMetricsRecordAction,
- &HasUnsupportedFeature,
- &SaveAs,
- &Print,
- &IsFeatureEnabled,
- &GetResourceImageForScale,
- &ModalPromptForPassword,
- &IsOutOfProcess,
- &SetSelectedText,
- &SetLinkUnderCursor,
-};
+ &GetLocalizedString, &GetResourceImage,
+ &GetFontFileWithFallback, &GetFontTableForPrivateFontFile,
+ &SearchString, &DidStartLoading,
+ &DidStopLoading, &SetContentRestriction,
+ &HistogramPDFPageCount, &UserMetricsRecordAction,
+ &HasUnsupportedFeature, &SaveAs,
+ &Print, &IsFeatureEnabled,
+ &GetResourceImageForScale, &ModalPromptForPassword,
+ &IsOutOfProcess, &SetSelectedText,
+ &SetLinkUnderCursor, };
} // namespace
-const PPB_PDF* GetPPB_PDF_Thunk() {
- return &g_ppb_pdf_thunk;
-}
+const PPB_PDF* GetPPB_PDF_Thunk() { return &g_ppb_pdf_thunk; }
} // namespace thunk
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698