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

Side by Side Diff: pdf/pdf_engine.h

Issue 2252963007: PDF rotation should maintain current page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO Created 4 years, 3 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 341 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
342 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 342 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
343 int pdf_buffer_size, int page_number, 343 int pdf_buffer_size, int page_number,
344 double* width, double* height) = 0; 344 double* width, double* height) = 0;
345 }; 345 };
346 346
347 } // namespace chrome_pdf 347 } // namespace chrome_pdf
348 348
349 #endif // PDF_PDF_ENGINE_H_ 349 #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