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

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 918953002: Fix for PDFs with lots of named destinations take a long time to load. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 10 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
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | 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 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void RotateClockwise(); 75 virtual void RotateClockwise();
76 virtual void RotateCounterclockwise(); 76 virtual void RotateCounterclockwise();
77 virtual std::string GetSelectedText(); 77 virtual std::string GetSelectedText();
78 virtual std::string GetLinkAtPosition(const pp::Point& point); 78 virtual std::string GetLinkAtPosition(const pp::Point& point);
79 virtual bool IsSelecting(); 79 virtual bool IsSelecting();
80 virtual bool HasPermission(DocumentPermission permission) const; 80 virtual bool HasPermission(DocumentPermission permission) const;
81 virtual void SelectAll(); 81 virtual void SelectAll();
82 virtual int GetNumberOfPages(); 82 virtual int GetNumberOfPages();
83 virtual pp::VarArray GetBookmarks(); 83 virtual pp::VarArray GetBookmarks();
84 virtual int GetNamedDestinationPage(const std::string& destination); 84 virtual int GetNamedDestinationPage(const std::string& destination);
85 virtual pp::VarDictionary GetNamedDestinations();
86 virtual int GetFirstVisiblePage(); 85 virtual int GetFirstVisiblePage();
87 virtual int GetMostVisiblePage(); 86 virtual int GetMostVisiblePage();
88 virtual pp::Rect GetPageRect(int index); 87 virtual pp::Rect GetPageRect(int index);
89 virtual pp::Rect GetPageContentsRect(int index); 88 virtual pp::Rect GetPageContentsRect(int index);
90 virtual int GetVerticalScrollbarYPosition() { return position_.y(); } 89 virtual int GetVerticalScrollbarYPosition() { return position_.y(); }
91 virtual void PaintThumbnail(pp::ImageData* image_data, int index); 90 virtual void PaintThumbnail(pp::ImageData* image_data, int index);
92 virtual void SetGrayscale(bool grayscale); 91 virtual void SetGrayscale(bool grayscale);
93 virtual void OnCallback(int id); 92 virtual void OnCallback(int id);
94 virtual std::string GetPageAsJSON(int index); 93 virtual std::string GetPageAsJSON(int index);
95 virtual bool GetPrintScaling(); 94 virtual bool GetPrintScaling();
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 749
751 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 750 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
752 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 751 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
753 int pdf_buffer_size, int page_number, 752 int pdf_buffer_size, int page_number,
754 double* width, double* height); 753 double* width, double* height);
755 }; 754 };
756 755
757 } // namespace chrome_pdf 756 } // namespace chrome_pdf
758 757
759 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 758 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698