| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // pp::Printing_Dev implementation. | 67 // pp::Printing_Dev implementation. |
| 68 uint32_t QuerySupportedPrintOutputFormats() override; | 68 uint32_t QuerySupportedPrintOutputFormats() override; |
| 69 int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) override; | 69 int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) override; |
| 70 pp::Resource PrintPages( | 70 pp::Resource PrintPages( |
| 71 const PP_PrintPageNumberRange_Dev* page_ranges, | 71 const PP_PrintPageNumberRange_Dev* page_ranges, |
| 72 uint32_t page_range_count) override; | 72 uint32_t page_range_count) override; |
| 73 void PrintEnd() override; | 73 void PrintEnd() override; |
| 74 bool IsPrintScalingDisabled() override; | 74 bool IsPrintScalingDisabled() override; |
| 75 | 75 |
| 76 // pp::Private implementation. | 76 // pp::Private implementation. |
| 77 virtual pp::Var GetLinkAtPosition(const pp::Point& point); | 77 pp::Var GetLinkAtPosition(const pp::Point& point); |
| 78 virtual void GetPrintPresetOptionsFromDocument( | 78 void GetPrintPresetOptionsFromDocument(PP_PdfPrintPresetOptions_Dev* options); |
| 79 PP_PdfPrintPresetOptions_Dev* options); | |
| 80 | 79 |
| 81 void FlushCallback(int32_t result); | 80 void FlushCallback(int32_t result); |
| 82 void DidOpen(int32_t result); | 81 void DidOpen(int32_t result); |
| 83 void DidOpenPreview(int32_t result); | 82 void DidOpenPreview(int32_t result); |
| 84 | 83 |
| 85 // Called when the timer is fired. | 84 // Called when the timer is fired. |
| 86 void OnClientTimerFired(int32_t id); | 85 void OnClientTimerFired(int32_t id); |
| 87 | 86 |
| 88 // Called to print without re-entrancy issues. | 87 // Called to print without re-entrancy issues. |
| 89 void OnPrint(int32_t); | 88 void OnPrint(int32_t); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // The blank space above the first page of the document reserved for the | 340 // The blank space above the first page of the document reserved for the |
| 342 // toolbar. | 341 // toolbar. |
| 343 int top_toolbar_height_; | 342 int top_toolbar_height_; |
| 344 | 343 |
| 345 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 344 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
| 346 }; | 345 }; |
| 347 | 346 |
| 348 } // namespace chrome_pdf | 347 } // namespace chrome_pdf |
| 349 | 348 |
| 350 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 349 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
| OLD | NEW |