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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Informs the client that the given rect needs to be repainted. | 64 // Informs the client that the given rect needs to be repainted. |
65 virtual void Invalidate(const pp::Rect& rect) = 0; | 65 virtual void Invalidate(const pp::Rect& rect) = 0; |
66 | 66 |
67 // Informs the client to scroll the plugin area by the given offset. | 67 // Informs the client to scroll the plugin area by the given offset. |
68 virtual void Scroll(const pp::Point& point) = 0; | 68 virtual void Scroll(const pp::Point& point) = 0; |
69 | 69 |
70 // Scroll the horizontal/vertical scrollbars to a given position. | 70 // Scroll the horizontal/vertical scrollbars to a given position. |
71 virtual void ScrollToX(int position) = 0; | 71 virtual void ScrollToX(int position) = 0; |
72 virtual void ScrollToY(int position) = 0; | 72 virtual void ScrollToY(int position) = 0; |
73 | 73 |
74 // Scroll to the specified page. | 74 // Scroll to zero-based |page|. |
75 virtual void ScrollToPage(int page) = 0; | 75 virtual void ScrollToPage(int page) = 0; |
76 | 76 |
77 // Navigate to the given url. | 77 // Navigate to the given url. |
78 virtual void NavigateTo(const std::string& url, | 78 virtual void NavigateTo(const std::string& url, |
79 WindowOpenDisposition disposition) = 0; | 79 WindowOpenDisposition disposition) = 0; |
80 | 80 |
81 // Updates the cursor. | 81 // Updates the cursor. |
82 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0; | 82 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0; |
83 | 83 |
84 // Updates the tick marks in the vertical scrollbar. | 84 // Updates the tick marks in the vertical scrollbar. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 347 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
348 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 348 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
349 int pdf_buffer_size, int page_number, | 349 int pdf_buffer_size, int page_number, |
350 double* width, double* height) = 0; | 350 double* width, double* height) = 0; |
351 }; | 351 }; |
352 | 352 |
353 } // namespace chrome_pdf | 353 } // namespace chrome_pdf |
354 | 354 |
355 #endif // PDF_PDF_ENGINE_H_ | 355 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |