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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 2050973003: PDF accessibility tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf_1_hastreedata
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void EnableAccessibility();
81 81
82 // Start loading accessibility information.
83 void LoadAccessibility();
84
82 // Send accessibility information about the given page index. 85 // Send accessibility information about the given page index.
83 void SendNextAccessibilityPage(int32_t page_index); 86 void SendNextAccessibilityPage(int32_t page_index);
84 87
85 void FlushCallback(int32_t result); 88 void FlushCallback(int32_t result);
86 void DidOpen(int32_t result); 89 void DidOpen(int32_t result);
87 void DidOpenPreview(int32_t result); 90 void DidOpenPreview(int32_t result);
88 91
89 // Called when the timer is fired. 92 // Called when the timer is fired.
90 void OnClientTimerFired(int32_t id); 93 void OnClientTimerFired(int32_t id);
91 94
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // zooming the plugin so that flickering doesn't occur while zooming. 342 // zooming the plugin so that flickering doesn't occur while zooming.
340 bool stop_scrolling_; 343 bool stop_scrolling_;
341 344
342 // The background color of the PDF viewer. 345 // The background color of the PDF viewer.
343 uint32_t background_color_; 346 uint32_t background_color_;
344 347
345 // The blank space above the first page of the document reserved for the 348 // The blank space above the first page of the document reserved for the
346 // toolbar. 349 // toolbar.
347 int top_toolbar_height_; 350 int top_toolbar_height_;
348 351
349 // Whether we should send accessibility information about the loaded PDF. 352 // The current state of accessibility: either off, enabled but waiting
350 bool accessibility_enabled_; 353 // for the document to load, or fully loaded.
354 enum AccessibilityState {
355 ACCESSIBILITY_STATE_OFF,
356 ACCESSIBILITY_STATE_PENDING, // Enabled but waiting for doc to load.
357 ACCESSIBILITY_STATE_LOADED
358 } accessibility_state_;
351 359
352 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 360 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
353 }; 361 };
354 362
355 } // namespace chrome_pdf 363 } // namespace chrome_pdf
356 364
357 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 365 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698