OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PAGE_H_ | 5 #ifndef PDF_PDFIUM_PDFIUM_PAGE_H_ |
6 #define PDF_PDFIUM_PDFIUM_PAGE_H_ | 6 #define PDF_PDFIUM_PDFIUM_PAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 std::vector<LinkTarget>* targets); | 114 std::vector<LinkTarget>* targets); |
115 // Calculate the locations of any links on the page. | 115 // Calculate the locations of any links on the page. |
116 void CalculateLinks(); | 116 void CalculateLinks(); |
117 // Returns link type and target associated with a link. Returns | 117 // Returns link type and target associated with a link. Returns |
118 // NONSELECTABLE_AREA if link detection failed. | 118 // NONSELECTABLE_AREA if link detection failed. |
119 Area GetLinkTarget(FPDF_LINK link, LinkTarget* target) const; | 119 Area GetLinkTarget(FPDF_LINK link, LinkTarget* target) const; |
120 // Returns target associated with a destination. | 120 // Returns target associated with a destination. |
121 Area GetDestinationTarget(FPDF_DEST destination, LinkTarget* target) const; | 121 Area GetDestinationTarget(FPDF_DEST destination, LinkTarget* target) const; |
122 // Returns target associated with a URI action. | 122 // Returns target associated with a URI action. |
123 Area GetURITarget(FPDF_ACTION uri_action, LinkTarget* target) const; | 123 Area GetURITarget(FPDF_ACTION uri_action, LinkTarget* target) const; |
| 124 // Returns target associated with a launch action. |
| 125 Area GetLaunchTarget(FPDF_ACTION launch_action, LinkTarget* target) const; |
124 | 126 |
125 class ScopedLoadCounter { | 127 class ScopedLoadCounter { |
126 public: | 128 public: |
127 explicit ScopedLoadCounter(PDFiumPage* page); | 129 explicit ScopedLoadCounter(PDFiumPage* page); |
128 ~ScopedLoadCounter(); | 130 ~ScopedLoadCounter(); |
129 | 131 |
130 private: | 132 private: |
131 PDFiumPage* const page_; | 133 PDFiumPage* const page_; |
132 }; | 134 }; |
133 | 135 |
(...skipping 14 matching lines...) Expand all Loading... |
148 int loading_count_; | 150 int loading_count_; |
149 pp::Rect rect_; | 151 pp::Rect rect_; |
150 bool calculated_links_; | 152 bool calculated_links_; |
151 std::vector<Link> links_; | 153 std::vector<Link> links_; |
152 bool available_; | 154 bool available_; |
153 }; | 155 }; |
154 | 156 |
155 } // namespace chrome_pdf | 157 } // namespace chrome_pdf |
156 | 158 |
157 #endif // PDF_PDFIUM_PDFIUM_PAGE_H_ | 159 #endif // PDF_PDFIUM_PDFIUM_PAGE_H_ |
OLD | NEW |