Index: pdf/pdfium/pdfium_page.h |
diff --git a/pdf/pdfium/pdfium_page.h b/pdf/pdfium/pdfium_page.h |
index acb2e7df3ab76422b05198a5d001c32a4cc277a4..d8aace2da1d5097466a542992efacbe72661e4f2 100644 |
--- a/pdf/pdfium/pdfium_page.h |
+++ b/pdf/pdfium/pdfium_page.h |
@@ -51,9 +51,13 @@ class PDFiumPage { |
enum Area { |
NONSELECTABLE_AREA, |
- TEXT_AREA, |
- WEBLINK_AREA, // Area is a hyperlink. |
- DOCLINK_AREA, // Area is a link to a different part of the same document. |
+ TEXT_AREA, // Area contains regular, selectable text not |
+ // within form fields. |
+ WEBLINK_AREA, // Area is a hyperlink. |
+ DOCLINK_AREA, // Area is a link to a different part of the same |
+ // document. |
+ FORM_TEXT_AREA, // Area is a form text field or form combobox text |
+ // field. |
}; |
struct LinkTarget { |
@@ -73,6 +77,9 @@ class PDFiumPage { |
int* form_type, |
LinkTarget* target); |
+ // Converts a form type to its corresponding Area. |
+ Area FormTypeToArea(int form_type); |
Lei Zhang
2017/06/21 00:19:46
Let's make this a static method, since its impleme
drgage
2017/06/21 01:30:24
Done.
|
+ |
// Gets the character at the given index. |
base::char16 GetCharAtIndex(int index); |