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

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

Issue 553433002: PDF Viewer - Links should open on mouse up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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.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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // callbacks to us from PDFium, since the current page can change while PDFium 501 // callbacks to us from PDFium, since the current page can change while PDFium
502 // code still has a pointer to it. 502 // code still has a pointer to it.
503 bool defer_page_unload_; 503 bool defer_page_unload_;
504 std::vector<int> deferred_page_unloads_; 504 std::vector<int> deferred_page_unloads_;
505 505
506 // Used for selection. There could be more than one range if selection spans 506 // Used for selection. There could be more than one range if selection spans
507 // more than one page. 507 // more than one page.
508 std::vector<PDFiumRange> selection_; 508 std::vector<PDFiumRange> selection_;
509 // True if we're in the middle of selection. 509 // True if we're in the middle of selection.
510 bool selecting_; 510 bool selecting_;
511 // True if we should open link.
512 bool open_link_;
511 513
512 // Used for searching. 514 // Used for searching.
513 typedef std::vector<PDFiumRange> FindResults; 515 typedef std::vector<PDFiumRange> FindResults;
514 FindResults find_results_; 516 FindResults find_results_;
515 // Which page to search next. 517 // Which page to search next.
516 int next_page_to_search_; 518 int next_page_to_search_;
517 // Where to stop searching. 519 // Where to stop searching.
518 int last_page_to_search_; 520 int last_page_to_search_;
519 int last_character_index_to_search_; // -1 if search until end of page. 521 int last_character_index_to_search_; // -1 if search until end of page.
520 // Which result the user has currently selected. 522 // Which result the user has currently selected.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 627
626 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 628 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
627 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 629 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
628 int pdf_buffer_size, int page_number, 630 int pdf_buffer_size, int page_number,
629 double* width, double* height); 631 double* width, double* height);
630 }; 632 };
631 633
632 } // namespace chrome_pdf 634 } // namespace chrome_pdf
633 635
634 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 636 #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