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

Side by Side Diff: pdf/number_image_generator.h

Issue 1125103002: Remove the in-process PDF viewer from pdf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-in-process-instance
Patch Set: Created 5 years, 7 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/instance.cc ('k') | pdf/number_image_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PDF_NUMBER_IMAGE_GENERATOR_H
6 #define PDF_NUMBER_IMAGE_GENERATOR_H
7
8 #include <vector>
9
10 #include "ppapi/cpp/image_data.h"
11
12 namespace chrome_pdf {
13
14 class Instance;
15
16 class NumberImageGenerator {
17 public:
18 explicit NumberImageGenerator(Instance* instance);
19 virtual ~NumberImageGenerator();
20
21 void Configure(const pp::ImageData& number_background,
22 const std::vector<pp::ImageData>& number_images,
23 float device_scale);
24
25 void GenerateImage(int page_number, pp::ImageData* image);
26
27 private:
28 Instance* instance_;
29 pp::ImageData number_background_;
30 std::vector<pp::ImageData> number_images_;
31 float device_scale_;
32 };
33
34 } // namespace chrome_pdf
35
36 #endif // PDF_NUMBER_IMAGE_GENERATOR_H
37
OLDNEW
« no previous file with comments | « pdf/instance.cc ('k') | pdf/number_image_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698