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.
5 #ifndef PDF_NUMBER_IMAGE_GENERATOR_H
6 #define PDF_NUMBER_IMAGE_GENERATOR_H
10 #include "ppapi/cpp/image_data.h"
12 namespace chrome_pdf
{
16 class NumberImageGenerator
{
18 explicit NumberImageGenerator(Instance
* instance
);
19 virtual ~NumberImageGenerator();
21 void Configure(const pp::ImageData
& number_background
,
22 const std::vector
<pp::ImageData
>& number_images
,
25 void GenerateImage(int page_number
, pp::ImageData
* image
);
29 pp::ImageData number_background_
;
30 std::vector
<pp::ImageData
> number_images_
;
34 } // namespace chrome_pdf
36 #endif // PDF_NUMBER_IMAGE_GENERATOR_H