)]}' { "commit": "5cf6e209650c59fc779e0019b7e6fac39a6ce9f8", "tree": "af25e1ef7f1222c3075861cb5bcd4953f65744a6", "parents": [ "2be5153b9abc6389f7bc18373fe102f6ea5f5d1e" ], "author": { "name": "Ankit Kumar 🌪️", "email": "ankk@microsoft.com", "time": "Thu Jul 04 22:42:08 2019 +0000" }, "committer": { "name": "Chromium commit bot", "email": "commit-bot@chromium.org", "time": "Thu Jul 04 22:42:08 2019 +0000" }, "message": "API to return text range for weblinks\n\nPDF text is parsed to find links using regex matching. These are not\nlinks which are present as annotations in the PDF but are still\nconsidered links (categorized as Auto-Detected links).\nWhile parsing the links PDFium identifies the start char index and char\ncount of the detected link.\n\nThis CL exposes a public method to get start char index and char count\nof such auto detected links. This is required for accessibility to\ngenerate the relative mapping of links and text.\n\nThis CL adds a unit test to cover both cases: asking the text range for\na valid link and an invalid link.\n\nBug: pdfium:1334\nChange-Id: I6d98b35eb9c6e7fcf4d800776b9129588fce0e09\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/56810\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "cdbf46af8ea1dbb67b8cd39a35f2c6f82effc3b0", "old_mode": 33188, "old_path": "core/fpdftext/cpdf_linkextract.cpp", "new_id": "399db50e69c98c33d37923cfed85c3b83c92a918", "new_mode": 33188, "new_path": "core/fpdftext/cpdf_linkextract.cpp" }, { "type": "modify", "old_id": "713f6581693123498ff42d3370c207f90d4dc239", "old_mode": 33188, "old_path": "core/fpdftext/cpdf_linkextract.h", "new_id": "1bb7b2f1354d4d98b579bb18b761367e0ccf5e67", "new_mode": 33188, "new_path": "core/fpdftext/cpdf_linkextract.h" }, { "type": "modify", "old_id": "cc965bd268f3e94063cd35001e6e088463e00934", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_text.cpp", "new_id": "cc7ca5bce00bf70e948eee8c525e596c88c28527", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_text.cpp" }, { "type": "modify", "old_id": "37e8dfa2e6c304e2c7a828ec33b5dce39d7321ba", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_text_embeddertest.cpp", "new_id": "12b09a7b4bdfb82c88aab855afe3c509028b87a7", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_text_embeddertest.cpp" }, { "type": "modify", "old_id": "32bb18dfc6a907273f1d3092df7857f645b57f28", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_view_c_api_test.c", "new_id": "0e64a0077ef680fcbf7ae7f597760bd50635e692", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_view_c_api_test.c" }, { "type": "modify", "old_id": "008c2369c1132f64d4aeb4cbdbdc91f1aea23d2c", "old_mode": 33188, "old_path": "public/fpdf_text.h", "new_id": "7bd84bf96abc3087df125d250bf7fe13761bb64d", "new_mode": 33188, "new_path": "public/fpdf_text.h" } ] }