OLD | NEW |
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_INSTANCE_H_ | 5 #ifndef PDF_INSTANCE_H_ |
6 #define PDF_INSTANCE_H_ | 6 #define PDF_INSTANCE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "pdf/button.h" | 15 #include "pdf/button.h" |
16 #include "pdf/fading_controls.h" | 16 #include "pdf/fading_controls.h" |
17 #include "pdf/page_indicator.h" | 17 #include "pdf/page_indicator.h" |
18 #include "pdf/paint_manager.h" | 18 #include "pdf/paint_manager.h" |
19 #include "pdf/pdf_engine.h" | 19 #include "pdf/pdf_engine.h" |
20 #include "pdf/preview_mode_client.h" | 20 #include "pdf/preview_mode_client.h" |
21 #include "pdf/progress_control.h" | 21 #include "pdf/progress_control.h" |
22 #include "pdf/thumbnail_control.h" | 22 #include "pdf/thumbnail_control.h" |
23 | 23 |
24 #include "ppapi/c/private/ppb_pdf.h" | 24 #include "ppapi/c/private/ppb_pdf.h" |
| 25 #include "ppapi/c/private/ppp_pdf.h" |
25 #include "ppapi/cpp/dev/printing_dev.h" | 26 #include "ppapi/cpp/dev/printing_dev.h" |
26 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" | 27 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" |
27 #include "ppapi/cpp/dev/scrollbar_dev.h" | 28 #include "ppapi/cpp/dev/scrollbar_dev.h" |
28 #include "ppapi/cpp/dev/selection_dev.h" | 29 #include "ppapi/cpp/dev/selection_dev.h" |
29 #include "ppapi/cpp/dev/widget_client_dev.h" | 30 #include "ppapi/cpp/dev/widget_client_dev.h" |
30 #include "ppapi/cpp/dev/zoom_dev.h" | 31 #include "ppapi/cpp/dev/zoom_dev.h" |
31 #include "ppapi/cpp/graphics_2d.h" | 32 #include "ppapi/cpp/graphics_2d.h" |
32 #include "ppapi/cpp/image_data.h" | 33 #include "ppapi/cpp/image_data.h" |
33 #include "ppapi/cpp/input_event.h" | 34 #include "ppapi/cpp/input_event.h" |
34 #include "ppapi/cpp/private/find_private.h" | 35 #include "ppapi/cpp/private/find_private.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual int32_t PrintBegin( | 84 virtual int32_t PrintBegin( |
84 const PP_PrintSettings_Dev& print_settings) OVERRIDE; | 85 const PP_PrintSettings_Dev& print_settings) OVERRIDE; |
85 virtual pp::Resource PrintPages( | 86 virtual pp::Resource PrintPages( |
86 const PP_PrintPageNumberRange_Dev* page_ranges, | 87 const PP_PrintPageNumberRange_Dev* page_ranges, |
87 uint32_t page_range_count) OVERRIDE; | 88 uint32_t page_range_count) OVERRIDE; |
88 virtual void PrintEnd() OVERRIDE; | 89 virtual void PrintEnd() OVERRIDE; |
89 virtual bool IsPrintScalingDisabled() OVERRIDE; | 90 virtual bool IsPrintScalingDisabled() OVERRIDE; |
90 | 91 |
91 // pp::Private implementation. | 92 // pp::Private implementation. |
92 virtual pp::Var GetLinkAtPosition(const pp::Point& point); | 93 virtual pp::Var GetLinkAtPosition(const pp::Point& point); |
| 94 virtual void GetPrintPresetOptionsFromDocument( |
| 95 PP_PdfPrintPresetOptions_Dev* options); |
93 | 96 |
94 // PPP_Selection_Dev implementation. | 97 // PPP_Selection_Dev implementation. |
95 virtual pp::Var GetSelectedText(bool html) OVERRIDE; | 98 virtual pp::Var GetSelectedText(bool html) OVERRIDE; |
96 | 99 |
97 // WidgetClient_Dev implementation. | 100 // WidgetClient_Dev implementation. |
98 virtual void InvalidateWidget(pp::Widget_Dev widget, | 101 virtual void InvalidateWidget(pp::Widget_Dev widget, |
99 const pp::Rect& dirty_rect) OVERRIDE; | 102 const pp::Rect& dirty_rect) OVERRIDE; |
100 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, | 103 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, |
101 uint32_t value) OVERRIDE; | 104 uint32_t value) OVERRIDE; |
102 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar, | 105 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar, |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 const std::vector<pp::Var>& args, | 525 const std::vector<pp::Var>& args, |
523 pp::Var* exception); | 526 pp::Var* exception); |
524 | 527 |
525 private: | 528 private: |
526 Instance* instance_; | 529 Instance* instance_; |
527 }; | 530 }; |
528 | 531 |
529 } // namespace chrome_pdf | 532 } // namespace chrome_pdf |
530 | 533 |
531 #endif // PDF_INSTANCE_H_ | 534 #endif // PDF_INSTANCE_H_ |
OLD | NEW |