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

Side by Side Diff: pdf/pdfium/pdfium_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/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('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_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void PostPaint(); 59 virtual void PostPaint();
60 virtual bool HandleDocumentLoad(const pp::URLLoader& loader); 60 virtual bool HandleDocumentLoad(const pp::URLLoader& loader);
61 virtual bool HandleEvent(const pp::InputEvent& event); 61 virtual bool HandleEvent(const pp::InputEvent& event);
62 virtual uint32_t QuerySupportedPrintOutputFormats(); 62 virtual uint32_t QuerySupportedPrintOutputFormats();
63 virtual void PrintBegin(); 63 virtual void PrintBegin();
64 virtual pp::Resource PrintPages( 64 virtual pp::Resource PrintPages(
65 const PP_PrintPageNumberRange_Dev* page_ranges, 65 const PP_PrintPageNumberRange_Dev* page_ranges,
66 uint32_t page_range_count, 66 uint32_t page_range_count,
67 const PP_PrintSettings_Dev& print_settings); 67 const PP_PrintSettings_Dev& print_settings);
68 virtual void PrintEnd(); 68 virtual void PrintEnd();
69 virtual void StartFind(const char* text, bool case_sensitive); 69 virtual void StartFind(const std::string& text, bool case_sensitive);
70 virtual bool SelectFindResult(bool forward); 70 virtual bool SelectFindResult(bool forward);
71 virtual void StopFind(); 71 virtual void StopFind();
72 virtual void ZoomUpdated(double new_zoom_level); 72 virtual void ZoomUpdated(double new_zoom_level);
73 virtual void RotateClockwise(); 73 virtual void RotateClockwise();
74 virtual void RotateCounterclockwise(); 74 virtual void RotateCounterclockwise();
75 virtual std::string GetSelectedText(); 75 virtual std::string GetSelectedText();
76 virtual std::string GetLinkAtPosition(const pp::Point& point); 76 virtual std::string GetLinkAtPosition(const pp::Point& point);
77 virtual bool IsSelecting(); 77 virtual bool IsSelecting();
78 virtual bool HasPermission(DocumentPermission permission) const; 78 virtual bool HasPermission(DocumentPermission permission) const;
79 virtual void SelectAll(); 79 virtual void SelectAll();
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 753 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
754 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 754 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
755 int pdf_buffer_size, int page_number, 755 int pdf_buffer_size, int page_number,
756 double* width, double* height); 756 double* width, double* height);
757 }; 757 };
758 758
759 } // namespace chrome_pdf 759 } // namespace chrome_pdf
760 760
761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698