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

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

Issue 2270463003: Turn on enforce-in-pdf Clang plugin flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win clang Created 4 years, 4 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 | « pdf/pdfium/pdfium_page.cc ('k') | pdf/pdfium/pdfium_range.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RANGE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_RANGE_H_
6 #define PDF_PDFIUM_PDFIUM_RANGE_H_ 6 #define PDF_PDFIUM_PDFIUM_RANGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "pdf/pdfium/pdfium_page.h" 12 #include "pdf/pdfium/pdfium_page.h"
13 #include "ppapi/cpp/rect.h" 13 #include "ppapi/cpp/rect.h"
14 14
15 namespace chrome_pdf { 15 namespace chrome_pdf {
16 16
17 // Describes location of a string of characters. 17 // Describes location of a string of characters.
18 class PDFiumRange { 18 class PDFiumRange {
19 public: 19 public:
20 PDFiumRange(PDFiumPage* page, int char_index, int char_count); 20 PDFiumRange(PDFiumPage* page, int char_index, int char_count);
21 PDFiumRange(const PDFiumRange& that);
21 ~PDFiumRange(); 22 ~PDFiumRange();
22 23
23 // Update how many characters are in the selection. Could be negative if 24 // Update how many characters are in the selection. Could be negative if
24 // backwards. 25 // backwards.
25 void SetCharCount(int char_count); 26 void SetCharCount(int char_count);
26 27
27 int page_index() const { return page_->index(); } 28 int page_index() const { return page_->index(); }
28 int char_index() const { return char_index_; } 29 int char_index() const { return char_index_; }
29 int char_count() const { return char_count_; } 30 int char_count() const { return char_count_; }
30 31
(...skipping 14 matching lines...) Expand all
45 46
46 // Cache of ScreenRect, and the associated variables used when caching it. 47 // Cache of ScreenRect, and the associated variables used when caching it.
47 std::vector<pp::Rect> cached_screen_rects_; 48 std::vector<pp::Rect> cached_screen_rects_;
48 pp::Point cached_screen_rects_offset_; 49 pp::Point cached_screen_rects_offset_;
49 double cached_screen_rects_zoom_; 50 double cached_screen_rects_zoom_;
50 }; 51 };
51 52
52 } // namespace chrome_pdf 53 } // namespace chrome_pdf
53 54
54 #endif // PDF_PDFIUM_PDFIUM_RANGE_H_ 55 #endif // PDF_PDFIUM_PDFIUM_RANGE_H_
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_page.cc ('k') | pdf/pdfium/pdfium_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698