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

Unified Diff: pdf/out_of_process_instance.h

Issue 2371483002: Update PDF accessibility when zoom level changes (Closed)
Patch Set: Cleaned up, ready for review Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index c30024824c07cbdea622eee05e32f06bbd77b3f7..cc66f6193e62d48253c51c368b9777e16b18e10c 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -79,12 +79,6 @@ class OutOfProcessInstance : public pp::Instance,
void GetPrintPresetOptionsFromDocument(PP_PdfPrintPresetOptions_Dev* options);
void EnableAccessibility();
- // Start loading accessibility information.
- void LoadAccessibility();
-
- // Send accessibility information about the given page index.
- void SendNextAccessibilityPage(int32_t page_index);
-
void FlushCallback(int32_t result);
void DidOpen(int32_t result);
void DidOpenPreview(int32_t result);
@@ -182,6 +176,17 @@ class OutOfProcessInstance : public pp::Instance,
void UserMetricsRecordAction(const std::string& action);
+ // Start loading accessibility information.
+ void LoadAccessibility();
+
+ // Send accessibility information about the given page index.
+ void SendNextAccessibilityPage(int32_t page_index);
+
+ // Send the accessibility information about the current viewport.
raymes 2016/09/27 05:05:31 nit: fill 80 chars
dmazzoni 2016/09/27 16:19:32 Done
+ // This is done once when accessibility is first loaded and again
+ // when the geometry changes.
+ void SendAccessibilityViewportInfo();
+
enum DocumentLoadState {
LOAD_STATE_LOADING,
LOAD_STATE_COMPLETE,

Powered by Google App Engine
This is Rietveld 408576698