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

Side by Side Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 231643004: PPAPI: Formatting fix in ppb_pdf_impl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/pepper/ppb_pdf_impl.h" 5 #include "chrome/renderer/pepper/ppb_pdf_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 429 }
430 430
431 void SetLinkUnderCursor(PP_Instance instance_id, const char* url) { 431 void SetLinkUnderCursor(PP_Instance instance_id, const char* url) {
432 content::PepperPluginInstance* instance = 432 content::PepperPluginInstance* instance =
433 content::PepperPluginInstance::Get(instance_id); 433 content::PepperPluginInstance::Get(instance_id);
434 if (!instance) 434 if (!instance)
435 return; 435 return;
436 instance->SetLinkUnderCursor(url); 436 instance->SetLinkUnderCursor(url);
437 } 437 }
438 438
439 const PPB_PDF ppb_pdf = { // 439 const PPB_PDF ppb_pdf = { //
440 &GetLocalizedString, // 440 &GetLocalizedString, //
441 &GetResourceImage, // 441 &GetResourceImage, //
442 &GetFontFileWithFallback, // 442 &GetFontFileWithFallback, //
443 &GetFontTableForPrivateFontFile, &SearchString, // 443 &GetFontTableForPrivateFontFile, //
444 &DidStartLoading, // 444 &SearchString, //
445 &DidStopLoading, // 445 &DidStartLoading, //
446 &SetContentRestriction, // 446 &DidStopLoading, //
447 &HistogramPDFPageCount, // 447 &SetContentRestriction, //
448 &UserMetricsRecordAction, // 448 &HistogramPDFPageCount, //
449 &HasUnsupportedFeature, // 449 &UserMetricsRecordAction, //
450 &SaveAs, // 450 &HasUnsupportedFeature, //
451 &PPB_PDF_Impl::InvokePrintingForInstance, // 451 &SaveAs, //
452 &IsFeatureEnabled, // 452 &PPB_PDF_Impl::InvokePrintingForInstance, //
453 &GetResourceImageForScale, // 453 &IsFeatureEnabled, //
454 &ModalPromptForPassword, // 454 &GetResourceImageForScale, //
455 &IsOutOfProcess, // 455 &ModalPromptForPassword, //
456 &SetSelectedText, // 456 &IsOutOfProcess, //
457 &SetLinkUnderCursor, // 457 &SetSelectedText, //
458 &SetLinkUnderCursor, //
458 }; 459 };
459 460
460 } // namespace 461 } // namespace
461 462
462 // static 463 // static
463 const PPB_PDF* PPB_PDF_Impl::GetInterface() { return &ppb_pdf; } 464 const PPB_PDF* PPB_PDF_Impl::GetInterface() { return &ppb_pdf; }
464 465
465 // static 466 // static
466 void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) { 467 void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) {
467 #if defined(ENABLE_FULL_PRINTING) 468 #if defined(ENABLE_FULL_PRINTING)
468 blink::WebElement element = GetWebElement(instance_id); 469 blink::WebElement element = GetWebElement(instance_id);
469 printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element); 470 printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element);
470 if (helper) 471 if (helper)
471 helper->PrintNode(element); 472 helper->PrintNode(element);
472 #endif // ENABLE_FULL_PRINTING 473 #endif // ENABLE_FULL_PRINTING
473 } 474 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698