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

Unified Diff: pdf/pdf_engine.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 31b575d1aebe965d3090ecdbd17b7ebb09b6d4e0..071f43c0b9cf277cee99a1a1e2cfefeea1390ac5 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -251,8 +251,8 @@ class PDFEngine {
virtual std::string GetPageAsJSON(int index) = 0;
// Get the number of characters on a given page.
virtual int GetCharCount(int page_index) = 0;
- // Get the width in pixels of a character on a given page.
- virtual double GetCharWidth(int page_index, int char_index) = 0;
+ // Get the bounds in page pixels of a character on a given page.
+ virtual pp::FloatRect GetCharBounds(int page_index, int char_index) = 0;
// Get a given unicode character on a given page.
virtual uint32_t GetCharUnicode(int page_index, int char_index) = 0;
// Given a start char index, find the longest continuous run of text that's
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698