| 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
|
|
|