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

Unified Diff: pdf/pdfium/pdfium_page.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 side-by-side diff with in-line comments
Download patch
Index: pdf/pdfium/pdfium_page.h
diff --git a/pdf/pdfium/pdfium_page.h b/pdf/pdfium/pdfium_page.h
index 802ecb64e559cb35ac1515d09ebb358258de3cad..4231fcf9adbad00b8da3c7a101e0a4a7ba023ee0 100644
--- a/pdf/pdfium/pdfium_page.h
+++ b/pdf/pdfium/pdfium_page.h
@@ -46,6 +46,16 @@ class PDFiumPage {
// Returns a DictionaryValue version of the page.
base::Value* GetAccessibleContentAsValue(int rotation);
+ // Given a start char index, find the longest continuous run of text that's
+ // in a single direction and with the same style and font size. Return the
+ // length of that sequence and its font size and bounding box.
+ void GetTextRunInfo(int start_char_index,
+ uint32_t* out_len,
+ double* out_font_size,
+ pp::FloatRect* out_bounds);
+ // Get the width of a character in page pixels.
+ double GetCharWidth(int char_index);
+
enum Area {
NONSELECTABLE_AREA,
TEXT_AREA,

Powered by Google App Engine
This is Rietveld 408576698