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_OUT_OF_PROCESS_INSTANCE_H_ | 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_ |
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ | 6 #define PDF_OUT_OF_PROCESS_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/paint_manager.h" | 15 #include "pdf/paint_manager.h" |
16 #include "pdf/pdf_engine.h" | 16 #include "pdf/pdf_engine.h" |
17 #include "pdf/preview_mode_client.h" | 17 #include "pdf/preview_mode_client.h" |
18 | 18 |
19 #include "ppapi/c/private/ppb_pdf.h" | 19 #include "ppapi/c/private/ppb_pdf.h" |
| 20 #include "ppapi/c/private/ppp_pdf.h" |
20 #include "ppapi/cpp/dev/printing_dev.h" | 21 #include "ppapi/cpp/dev/printing_dev.h" |
21 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" | 22 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" |
22 #include "ppapi/cpp/dev/selection_dev.h" | 23 #include "ppapi/cpp/dev/selection_dev.h" |
23 #include "ppapi/cpp/graphics_2d.h" | 24 #include "ppapi/cpp/graphics_2d.h" |
24 #include "ppapi/cpp/image_data.h" | 25 #include "ppapi/cpp/image_data.h" |
25 #include "ppapi/cpp/input_event.h" | 26 #include "ppapi/cpp/input_event.h" |
26 #include "ppapi/cpp/instance.h" | 27 #include "ppapi/cpp/instance.h" |
27 #include "ppapi/cpp/private/find_private.h" | 28 #include "ppapi/cpp/private/find_private.h" |
28 #include "ppapi/cpp/private/uma_private.h" | 29 #include "ppapi/cpp/private/uma_private.h" |
29 #include "ppapi/cpp/url_loader.h" | 30 #include "ppapi/cpp/url_loader.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual int32_t PrintBegin( | 70 virtual int32_t PrintBegin( |
70 const PP_PrintSettings_Dev& print_settings) OVERRIDE; | 71 const PP_PrintSettings_Dev& print_settings) OVERRIDE; |
71 virtual pp::Resource PrintPages( | 72 virtual pp::Resource PrintPages( |
72 const PP_PrintPageNumberRange_Dev* page_ranges, | 73 const PP_PrintPageNumberRange_Dev* page_ranges, |
73 uint32_t page_range_count) OVERRIDE; | 74 uint32_t page_range_count) OVERRIDE; |
74 virtual void PrintEnd() OVERRIDE; | 75 virtual void PrintEnd() OVERRIDE; |
75 virtual bool IsPrintScalingDisabled() OVERRIDE; | 76 virtual bool IsPrintScalingDisabled() OVERRIDE; |
76 | 77 |
77 // pp::Private implementation. | 78 // pp::Private implementation. |
78 virtual pp::Var GetLinkAtPosition(const pp::Point& point); | 79 virtual pp::Var GetLinkAtPosition(const pp::Point& point); |
| 80 virtual void GetPrintPresetOptionsFromDocument( |
| 81 PP_PdfPrintPresetOptions_Dev* options); |
79 | 82 |
80 // PPP_Selection_Dev implementation. | 83 // PPP_Selection_Dev implementation. |
81 virtual pp::Var GetSelectedText(bool html) OVERRIDE; | 84 virtual pp::Var GetSelectedText(bool html) OVERRIDE; |
82 | 85 |
83 void FlushCallback(int32_t result); | 86 void FlushCallback(int32_t result); |
84 void DidOpen(int32_t result); | 87 void DidOpen(int32_t result); |
85 void DidOpenPreview(int32_t result); | 88 void DidOpenPreview(int32_t result); |
86 | 89 |
87 // Called when the timer is fired. | 90 // Called when the timer is fired. |
88 void OnClientTimerFired(int32_t id); | 91 void OnClientTimerFired(int32_t id); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // zooming the plugin so that flickering doesn't occur while zooming. | 339 // zooming the plugin so that flickering doesn't occur while zooming. |
337 bool stop_scrolling_; | 340 bool stop_scrolling_; |
338 | 341 |
339 // The callback for receiving the password from the page. | 342 // The callback for receiving the password from the page. |
340 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; | 343 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; |
341 }; | 344 }; |
342 | 345 |
343 } // namespace chrome_pdf | 346 } // namespace chrome_pdf |
344 | 347 |
345 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 348 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
OLD | NEW |