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

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

Issue 2127383002: Open hyperlinks in PDF in a new tab when middle mouse clicking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // DocumentLoader::Client implementation. 112 // DocumentLoader::Client implementation.
113 pp::Instance* GetPluginInstance() override; 113 pp::Instance* GetPluginInstance() override;
114 pp::URLLoader CreateURLLoader() override; 114 pp::URLLoader CreateURLLoader() override;
115 void OnPartialDocumentLoaded() override; 115 void OnPartialDocumentLoaded() override;
116 void OnPendingRequestComplete() override; 116 void OnPendingRequestComplete() override;
117 void OnNewDataAvailable() override; 117 void OnNewDataAvailable() override;
118 void OnDocumentComplete() override; 118 void OnDocumentComplete() override;
119 119
120 void UnsupportedFeature(int type); 120 void UnsupportedFeature(int type);
121 121
122 std::vector<pp::Rect> GetLinkRects();
Lei Zhang 2016/07/08 18:02:36 Put this after GetMetadata() and add the override
jaepark 2016/07/08 20:58:16 Done.
123
122 std::string current_find_text() const { return current_find_text_; } 124 std::string current_find_text() const { return current_find_text_; }
123 125
124 FPDF_DOCUMENT doc() { return doc_; } 126 FPDF_DOCUMENT doc() { return doc_; }
125 FPDF_FORMHANDLE form() { return form_; } 127 FPDF_FORMHANDLE form() { return form_; }
126 128
127 private: 129 private:
128 // This helper class is used to detect the difference in selection between 130 // This helper class is used to detect the difference in selection between
129 // construction and destruction. At destruction, it invalidates all the 131 // construction and destruction. At destruction, it invalidates all the
130 // parts that are newly selected, along with all the parts that used to be 132 // parts that are newly selected, along with all the parts that used to be
131 // selected but are not anymore. 133 // selected but are not anymore.
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 756 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
755 int pdf_buffer_size, 757 int pdf_buffer_size,
756 int page_number, 758 int page_number,
757 double* width, 759 double* width,
758 double* height) override; 760 double* height) override;
759 }; 761 };
760 762
761 } // namespace chrome_pdf 763 } // namespace chrome_pdf
762 764
763 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 765 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698