| 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 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) override; | 70 int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) override; |
| 71 pp::Resource PrintPages( | 71 pp::Resource PrintPages( |
| 72 const PP_PrintPageNumberRange_Dev* page_ranges, | 72 const PP_PrintPageNumberRange_Dev* page_ranges, |
| 73 uint32_t page_range_count) override; | 73 uint32_t page_range_count) override; |
| 74 void PrintEnd() override; | 74 void PrintEnd() override; |
| 75 bool IsPrintScalingDisabled() override; | 75 bool IsPrintScalingDisabled() override; |
| 76 | 76 |
| 77 // pp::Private implementation. | 77 // pp::Private implementation. |
| 78 pp::Var GetLinkAtPosition(const pp::Point& point); | 78 pp::Var GetLinkAtPosition(const pp::Point& point); |
| 79 void GetPrintPresetOptionsFromDocument(PP_PdfPrintPresetOptions_Dev* options); | 79 void GetPrintPresetOptionsFromDocument(PP_PdfPrintPresetOptions_Dev* options); |
| 80 void EnableAccessibility(); |
| 81 |
| 82 // Send accessibility information about the given page index. |
| 83 void SendNextAccessibilityPage(int32_t page_index); |
| 80 | 84 |
| 81 void FlushCallback(int32_t result); | 85 void FlushCallback(int32_t result); |
| 82 void DidOpen(int32_t result); | 86 void DidOpen(int32_t result); |
| 83 void DidOpenPreview(int32_t result); | 87 void DidOpenPreview(int32_t result); |
| 84 | 88 |
| 85 // Called when the timer is fired. | 89 // Called when the timer is fired. |
| 86 void OnClientTimerFired(int32_t id); | 90 void OnClientTimerFired(int32_t id); |
| 87 | 91 |
| 88 // Called to print without re-entrancy issues. | 92 // Called to print without re-entrancy issues. |
| 89 void OnPrint(int32_t); | 93 void OnPrint(int32_t); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // zooming the plugin so that flickering doesn't occur while zooming. | 339 // zooming the plugin so that flickering doesn't occur while zooming. |
| 336 bool stop_scrolling_; | 340 bool stop_scrolling_; |
| 337 | 341 |
| 338 // The background color of the PDF viewer. | 342 // The background color of the PDF viewer. |
| 339 uint32_t background_color_; | 343 uint32_t background_color_; |
| 340 | 344 |
| 341 // The blank space above the first page of the document reserved for the | 345 // The blank space above the first page of the document reserved for the |
| 342 // toolbar. | 346 // toolbar. |
| 343 int top_toolbar_height_; | 347 int top_toolbar_height_; |
| 344 | 348 |
| 349 // Whether we should send accessibility information about the loaded PDF. |
| 350 bool accessibility_enabled_; |
| 351 |
| 345 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 352 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
| 346 }; | 353 }; |
| 347 | 354 |
| 348 } // namespace chrome_pdf | 355 } // namespace chrome_pdf |
| 349 | 356 |
| 350 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 357 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
| OLD | NEW |