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

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 689083002: Right clicking outside of a selected area should deselect text and bring up the correct context men… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring and Improving patch. Created 5 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.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // Checks if a page is now available, and if so marks it as such and returns 240 // Checks if a page is now available, and if so marks it as such and returns
241 // true. Otherwise, it will return false and will add the index to the given 241 // true. Otherwise, it will return false and will add the index to the given
242 // array if it's not already there. 242 // array if it's not already there.
243 bool CheckPageAvailable(int index, std::vector<int>* pending); 243 bool CheckPageAvailable(int index, std::vector<int>* pending);
244 244
245 // Helper function to get a given page's size in pixels. This is not part of 245 // Helper function to get a given page's size in pixels. This is not part of
246 // PDFiumPage because we might not have that structure when we need this. 246 // PDFiumPage because we might not have that structure when we need this.
247 pp::Size GetPageSize(int index); 247 pp::Size GetPageSize(int index);
248 248
249 void GetAllScreenRectsUnion(std::vector<PDFiumRange> rectRange,
gene 2015/01/06 18:40:04 nit: variable names are not camel case (like offse
Deepak 2015/01/07 04:59:01 changed to reference, but can not use const as Get
250 const pp::Point offset_point,
gene 2015/01/06 18:40:04 nit: const reference?
Deepak 2015/01/07 04:59:01 Done.
251 std::vector<pp::Rect>& rectVector);
gene 2015/01/06 18:40:04 nit: variable names are not camel case (like offse
Deepak 2015/01/07 04:59:01 Done.
252
249 void UpdateTickMarks(); 253 void UpdateTickMarks();
250 254
251 // Called to continue searching so we don't block the main thread. 255 // Called to continue searching so we don't block the main thread.
252 void ContinueFind(int32_t result); 256 void ContinueFind(int32_t result);
253 257
254 // Inserts a find result into find_results_, which is sorted. 258 // Inserts a find result into find_results_, which is sorted.
255 void AddFindResult(const PDFiumRange& result); 259 void AddFindResult(const PDFiumRange& result);
256 260
257 // Search a page using PDFium's methods. Doesn't work with unicode. This 261 // Search a page using PDFium's methods. Doesn't work with unicode. This
258 // function is just kept arount in case PDFium code is fixed. 262 // function is just kept arount in case PDFium code is fixed.
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 741
738 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 742 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
739 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 743 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
740 int pdf_buffer_size, int page_number, 744 int pdf_buffer_size, int page_number,
741 double* width, double* height); 745 double* width, double* height);
742 }; 746 };
743 747
744 } // namespace chrome_pdf 748 } // namespace chrome_pdf
745 749
746 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 750 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698