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

Unified Diff: pdf/pdfium/pdfium_engine.cc

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/pdfium/pdfium_engine.h ('k') | pdf/pdfium/pdfium_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index b020fe5062e24fa5f393403e90ac23980c48cd26..17ef03f6a74428bc7d918c7b84c373affcdc221e 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2312,9 +2312,9 @@ int PDFiumEngine::GetCharCount(int page_index) {
return pages_[page_index]->GetCharCount();
}
-double PDFiumEngine::GetCharWidth(int page_index, int char_index) {
+pp::FloatRect PDFiumEngine::GetCharBounds(int page_index, int char_index) {
DCHECK(page_index >= 0 && page_index < static_cast<int>(pages_.size()));
- return pages_[page_index]->GetCharWidth(char_index);
+ return pages_[page_index]->GetCharBounds(char_index);
}
uint32_t PDFiumEngine::GetCharUnicode(int page_index, int char_index) {
« no previous file with comments | « pdf/pdfium/pdfium_engine.h ('k') | pdf/pdfium/pdfium_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698