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

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

Issue 830433002: Navigation to relative fragments does not work correctly for OOP pdf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes after taking all nameddest at load time. Created 5 years, 11 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual bool IsProgressiveLoad(); 97 virtual bool IsProgressiveLoad();
98 98
99 // DocumentLoader::Client implementation. 99 // DocumentLoader::Client implementation.
100 virtual pp::Instance* GetPluginInstance(); 100 virtual pp::Instance* GetPluginInstance();
101 virtual pp::URLLoader CreateURLLoader(); 101 virtual pp::URLLoader CreateURLLoader();
102 virtual void OnPartialDocumentLoaded(); 102 virtual void OnPartialDocumentLoaded();
103 virtual void OnPendingRequestComplete(); 103 virtual void OnPendingRequestComplete();
104 virtual void OnNewDataAvailable(); 104 virtual void OnNewDataAvailable();
105 virtual void OnDocumentComplete(); 105 virtual void OnDocumentComplete();
106 106
107 virtual unsigned long GetNameDestCount();
108 virtual void GetNameDests(std::vector<std::string>* name_dest);
109
107 void UnsupportedFeature(int type); 110 void UnsupportedFeature(int type);
108 111
109 std::string current_find_text() const { return current_find_text_; } 112 std::string current_find_text() const { return current_find_text_; }
110 113
111 FPDF_DOCUMENT doc() { return doc_; } 114 FPDF_DOCUMENT doc() { return doc_; }
112 FPDF_FORMHANDLE form() { return form_; } 115 FPDF_FORMHANDLE form() { return form_; }
113 116
114 private: 117 private:
115 // This helper class is used to detect the difference in selection between 118 // This helper class is used to detect the difference in selection between
116 // construction and destruction. At destruction, it invalidates all the 119 // construction and destruction. At destruction, it invalidates all the
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 744
742 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 745 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
743 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 746 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
744 int pdf_buffer_size, int page_number, 747 int pdf_buffer_size, int page_number,
745 double* width, double* height); 748 double* width, double* height);
746 }; 749 };
747 750
748 } // namespace chrome_pdf 751 } // namespace chrome_pdf
749 752
750 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 753 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« pdf/pdf_engine.h ('K') | « 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