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

Side by Side Diff: pdf/pdf_engine.h

Issue 1557423002: Revert of Remove some dead PDF code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 const PP_PrintSettings_Dev& print_settings) = 0; 215 const PP_PrintSettings_Dev& print_settings) = 0;
216 virtual void PrintEnd() = 0; 216 virtual void PrintEnd() = 0;
217 virtual void StartFind(const std::string& text, bool case_sensitive) = 0; 217 virtual void StartFind(const std::string& text, bool case_sensitive) = 0;
218 virtual bool SelectFindResult(bool forward) = 0; 218 virtual bool SelectFindResult(bool forward) = 0;
219 virtual void StopFind() = 0; 219 virtual void StopFind() = 0;
220 virtual void ZoomUpdated(double new_zoom_level) = 0; 220 virtual void ZoomUpdated(double new_zoom_level) = 0;
221 virtual void RotateClockwise() = 0; 221 virtual void RotateClockwise() = 0;
222 virtual void RotateCounterclockwise() = 0; 222 virtual void RotateCounterclockwise() = 0;
223 virtual std::string GetSelectedText() = 0; 223 virtual std::string GetSelectedText() = 0;
224 virtual std::string GetLinkAtPosition(const pp::Point& point) = 0; 224 virtual std::string GetLinkAtPosition(const pp::Point& point) = 0;
225 virtual bool IsSelecting() = 0;
225 // Checks the permissions associated with this document. 226 // Checks the permissions associated with this document.
226 virtual bool HasPermission(DocumentPermission permission) const = 0; 227 virtual bool HasPermission(DocumentPermission permission) const = 0;
227 virtual void SelectAll() = 0; 228 virtual void SelectAll() = 0;
228 // Gets the number of pages in the document. 229 // Gets the number of pages in the document.
229 virtual int GetNumberOfPages() = 0; 230 virtual int GetNumberOfPages() = 0;
230 // Gets the 0-based page number of |destination|, or -1 if it does not exist. 231 // Gets the 0-based page number of |destination|, or -1 if it does not exist.
231 virtual int GetNamedDestinationPage(const std::string& destination) = 0; 232 virtual int GetNamedDestinationPage(const std::string& destination) = 0;
233 // Gets the index of the first visible page, or -1 if none are visible.
234 virtual int GetFirstVisiblePage() = 0;
232 // Gets the index of the most visible page, or -1 if none are visible. 235 // Gets the index of the most visible page, or -1 if none are visible.
233 virtual int GetMostVisiblePage() = 0; 236 virtual int GetMostVisiblePage() = 0;
234 // Gets the rectangle of the page including shadow. 237 // Gets the rectangle of the page including shadow.
235 virtual pp::Rect GetPageRect(int index) = 0; 238 virtual pp::Rect GetPageRect(int index) = 0;
236 // Gets the rectangle of the page excluding any additional areas. 239 // Gets the rectangle of the page excluding any additional areas.
237 virtual pp::Rect GetPageContentsRect(int index) = 0; 240 virtual pp::Rect GetPageContentsRect(int index) = 0;
238 // Returns a page's rect in screen coordinates, as well as its surrounding 241 // Returns a page's rect in screen coordinates, as well as its surrounding
239 // border areas and bottom separator. 242 // border areas and bottom separator.
240 virtual pp::Rect GetPageScreenRect(int page_index) const = 0; 243 virtual pp::Rect GetPageScreenRect(int page_index) const = 0;
241 // Gets the offset of the vertical scrollbar from the top in document 244 // Gets the offset of the vertical scrollbar from the top in document
242 // coordinates. 245 // coordinates.
243 virtual int GetVerticalScrollbarYPosition() = 0; 246 virtual int GetVerticalScrollbarYPosition() = 0;
247 // Paints page thumbnail to the ImageData.
248 virtual void PaintThumbnail(pp::ImageData* image_data, int index) = 0;
244 // Set color / grayscale rendering modes. 249 // Set color / grayscale rendering modes.
245 virtual void SetGrayscale(bool grayscale) = 0; 250 virtual void SetGrayscale(bool grayscale) = 0;
246 // Callback for timer that's set with ScheduleCallback(). 251 // Callback for timer that's set with ScheduleCallback().
247 virtual void OnCallback(int id) = 0; 252 virtual void OnCallback(int id) = 0;
248 // Gets the JSON representation of the PDF file 253 // Gets the JSON representation of the PDF file
249 virtual std::string GetPageAsJSON(int index) = 0; 254 virtual std::string GetPageAsJSON(int index) = 0;
250 // Gets the PDF document's print scaling preference. True if the document can 255 // Gets the PDF document's print scaling preference. True if the document can
251 // be scaled to fit. 256 // be scaled to fit.
252 virtual bool GetPrintScaling() = 0; 257 virtual bool GetPrintScaling() = 0;
253 // Returns number of copies to be printed. 258 // Returns number of copies to be printed.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 341
337 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 342 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
338 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 343 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
339 int pdf_buffer_size, int page_number, 344 int pdf_buffer_size, int page_number,
340 double* width, double* height) = 0; 345 double* width, double* height) = 0;
341 }; 346 };
342 347
343 } // namespace chrome_pdf 348 } // namespace chrome_pdf
344 349
345 #endif // PDF_PDF_ENGINE_H_ 350 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698