| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Converts from page coordinates to screen coordinates. | 81 // Converts from page coordinates to screen coordinates. |
| 82 pp::Rect PageToScreen(const pp::Point& offset, | 82 pp::Rect PageToScreen(const pp::Point& offset, |
| 83 double zoom, | 83 double zoom, |
| 84 double left, | 84 double left, |
| 85 double top, | 85 double top, |
| 86 double right, | 86 double right, |
| 87 double bottom, | 87 double bottom, |
| 88 int rotation) const; | 88 int rotation) const; |
| 89 | 89 |
| 90 std::vector<pp::Rect> GetLinkRects(); |
| 91 |
| 90 int index() const { return index_; } | 92 int index() const { return index_; } |
| 91 pp::Rect rect() const { return rect_; } | 93 pp::Rect rect() const { return rect_; } |
| 92 void set_rect(const pp::Rect& r) { rect_ = r; } | 94 void set_rect(const pp::Rect& r) { rect_ = r; } |
| 93 bool available() const { return available_; } | 95 bool available() const { return available_; } |
| 94 void set_available(bool available) { available_ = available; } | 96 void set_available(bool available) { available_ = available; } |
| 95 void set_calculated_links(bool calculated_links) { | 97 void set_calculated_links(bool calculated_links) { |
| 96 calculated_links_ = calculated_links; | 98 calculated_links_ = calculated_links; |
| 97 } | 99 } |
| 98 | 100 |
| 99 private: | 101 private: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 int loading_count_; | 139 int loading_count_; |
| 138 pp::Rect rect_; | 140 pp::Rect rect_; |
| 139 bool calculated_links_; | 141 bool calculated_links_; |
| 140 std::vector<Link> links_; | 142 std::vector<Link> links_; |
| 141 bool available_; | 143 bool available_; |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 } // namespace chrome_pdf | 146 } // namespace chrome_pdf |
| 145 | 147 |
| 146 #endif // PDF_PDFIUM_PDFIUM_PAGE_H_ | 148 #endif // PDF_PDFIUM_PDFIUM_PAGE_H_ |
| OLD | NEW |