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

Side by Side Diff: pdf/pdf_engine.h

Issue 1365563003: Prevent guest views from issuing a search for empty text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: parens Created 5 years, 1 month 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 | « pdf/out_of_process_instance.cc ('k') | 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 "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual void PostPaint() = 0; 202 virtual void PostPaint() = 0;
203 virtual bool HandleDocumentLoad(const pp::URLLoader& loader) = 0; 203 virtual bool HandleDocumentLoad(const pp::URLLoader& loader) = 0;
204 virtual bool HandleEvent(const pp::InputEvent& event) = 0; 204 virtual bool HandleEvent(const pp::InputEvent& event) = 0;
205 virtual uint32_t QuerySupportedPrintOutputFormats() = 0; 205 virtual uint32_t QuerySupportedPrintOutputFormats() = 0;
206 virtual void PrintBegin() = 0; 206 virtual void PrintBegin() = 0;
207 virtual pp::Resource PrintPages( 207 virtual pp::Resource PrintPages(
208 const PP_PrintPageNumberRange_Dev* page_ranges, 208 const PP_PrintPageNumberRange_Dev* page_ranges,
209 uint32_t page_range_count, 209 uint32_t page_range_count,
210 const PP_PrintSettings_Dev& print_settings) = 0; 210 const PP_PrintSettings_Dev& print_settings) = 0;
211 virtual void PrintEnd() = 0; 211 virtual void PrintEnd() = 0;
212 virtual void StartFind(const char* text, bool case_sensitive) = 0; 212 virtual void StartFind(const std::string& text, bool case_sensitive) = 0;
213 virtual bool SelectFindResult(bool forward) = 0; 213 virtual bool SelectFindResult(bool forward) = 0;
214 virtual void StopFind() = 0; 214 virtual void StopFind() = 0;
215 virtual void ZoomUpdated(double new_zoom_level) = 0; 215 virtual void ZoomUpdated(double new_zoom_level) = 0;
216 virtual void RotateClockwise() = 0; 216 virtual void RotateClockwise() = 0;
217 virtual void RotateCounterclockwise() = 0; 217 virtual void RotateCounterclockwise() = 0;
218 virtual std::string GetSelectedText() = 0; 218 virtual std::string GetSelectedText() = 0;
219 virtual std::string GetLinkAtPosition(const pp::Point& point) = 0; 219 virtual std::string GetLinkAtPosition(const pp::Point& point) = 0;
220 virtual bool IsSelecting() = 0; 220 virtual bool IsSelecting() = 0;
221 // Checks the permissions associated with this document. 221 // Checks the permissions associated with this document.
222 virtual bool HasPermission(DocumentPermission permission) const = 0; 222 virtual bool HasPermission(DocumentPermission permission) const = 0;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 336 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
337 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 337 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
338 int pdf_buffer_size, int page_number, 338 int pdf_buffer_size, int page_number,
339 double* width, double* height) = 0; 339 double* width, double* height) = 0;
340 }; 340 };
341 341
342 } // namespace chrome_pdf 342 } // namespace chrome_pdf
343 343
344 #endif // PDF_PDF_ENGINE_H_ 344 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698