OLD | NEW |
---|---|
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_PDF_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 virtual void Scroll(const pp::Point& point) = 0; | 73 virtual void Scroll(const pp::Point& point) = 0; |
74 | 74 |
75 // Scroll the horizontal/vertical scrollbars to a given position. | 75 // Scroll the horizontal/vertical scrollbars to a given position. |
76 virtual void ScrollToX(int position) = 0; | 76 virtual void ScrollToX(int position) = 0; |
77 virtual void ScrollToY(int position) = 0; | 77 virtual void ScrollToY(int position) = 0; |
78 | 78 |
79 // Scroll to the specified page. | 79 // Scroll to the specified page. |
80 virtual void ScrollToPage(int page) = 0; | 80 virtual void ScrollToPage(int page) = 0; |
81 | 81 |
82 // Navigate to the given url. | 82 // Navigate to the given url. |
83 virtual void NavigateTo(const std::string& url, bool open_in_new_tab) = 0; | 83 virtual void NavigateTo(const std::string& url, int option) = 0; |
Lei Zhang
2016/07/21 05:34:28
Can |option| be of type NavigateOption?
jaepark
2016/07/21 22:34:33
Done.
| |
84 | 84 |
85 // Updates the cursor. | 85 // Updates the cursor. |
86 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0; | 86 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0; |
87 | 87 |
88 // Updates the tick marks in the vertical scrollbar. | 88 // Updates the tick marks in the vertical scrollbar. |
89 virtual void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) = 0; | 89 virtual void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) = 0; |
90 | 90 |
91 // Updates the number of find results for the current search term. If | 91 // Updates the number of find results for the current search term. If |
92 // there are no matches 0 should be passed in. Only when the plugin has | 92 // there are no matches 0 should be passed in. Only when the plugin has |
93 // finished searching should it pass in the final count with final_result | 93 // finished searching should it pass in the final count with final_result |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 | 350 |
351 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 351 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
352 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 352 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
353 int pdf_buffer_size, int page_number, | 353 int pdf_buffer_size, int page_number, |
354 double* width, double* height) = 0; | 354 double* width, double* height) = 0; |
355 }; | 355 }; |
356 | 356 |
357 } // namespace chrome_pdf | 357 } // namespace chrome_pdf |
358 | 358 |
359 #endif // PDF_PDF_ENGINE_H_ | 359 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |