Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: pdf/out_of_process_instance.h

Issue 1953053002: Add private PPAPI interfaces for PDFium accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback from Lei Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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();
80 81
81 void FlushCallback(int32_t result); 82 void FlushCallback(int32_t result);
82 void DidOpen(int32_t result); 83 void DidOpen(int32_t result);
83 void DidOpenPreview(int32_t result); 84 void DidOpenPreview(int32_t result);
84 85
85 // Called when the timer is fired. 86 // Called when the timer is fired.
86 void OnClientTimerFired(int32_t id); 87 void OnClientTimerFired(int32_t id);
87 88
88 // Called to print without re-entrancy issues. 89 // Called to print without re-entrancy issues.
89 void OnPrint(int32_t); 90 void OnPrint(int32_t);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void DocumentPaintOccurred() override; 127 void DocumentPaintOccurred() override;
127 void DocumentLoadComplete(int page_count) override; 128 void DocumentLoadComplete(int page_count) override;
128 void DocumentLoadFailed() override; 129 void DocumentLoadFailed() override;
129 pp::Instance* GetPluginInstance() override; 130 pp::Instance* GetPluginInstance() override;
130 void DocumentHasUnsupportedFeature(const std::string& feature) override; 131 void DocumentHasUnsupportedFeature(const std::string& feature) override;
131 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override; 132 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override;
132 void FormTextFieldFocusChange(bool in_focus) override; 133 void FormTextFieldFocusChange(bool in_focus) override;
133 bool IsPrintPreview() override; 134 bool IsPrintPreview() override;
134 uint32_t GetBackgroundColor() override; 135 uint32_t GetBackgroundColor() override;
135 void IsSelectingChanged(bool is_selecting) override; 136 void IsSelectingChanged(bool is_selecting) override;
137 int GetToolbarHeight() override;
136 138
137 // PreviewModeClient::Client implementation. 139 // PreviewModeClient::Client implementation.
138 void PreviewDocumentLoadComplete() override; 140 void PreviewDocumentLoadComplete() override;
139 void PreviewDocumentLoadFailed() override; 141 void PreviewDocumentLoadFailed() override;
140 142
141 // Helper functions for implementing PPP_PDF. 143 // Helper functions for implementing PPP_PDF.
142 void RotateClockwise(); 144 void RotateClockwise();
143 void RotateCounterclockwise(); 145 void RotateCounterclockwise();
144 146
145 private: 147 private:
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // The blank space above the first page of the document reserved for the 343 // The blank space above the first page of the document reserved for the
342 // toolbar. 344 // toolbar.
343 int top_toolbar_height_; 345 int top_toolbar_height_;
344 346
345 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 347 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
346 }; 348 };
347 349
348 } // namespace chrome_pdf 350 } // namespace chrome_pdf
349 351
350 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 352 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698