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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 2924343005: Add functionality for copying text within form text fields and form combobox text fields (Closed)
Patch Set: Updated style and commenting Created 3 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 | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index 6620c77cb6bad9313550bdb79835ac494e61afdb..60c41bc67c7cd667ed06cc23cfbfd8133ea73607 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -318,6 +318,11 @@ class PDFiumEngine : public PDFEngine,
const PP_PrintSettings_Dev& print_settings);
void SaveSelectedFormForPrint();
+ // Sets plugin's selected text to be selected text in form text field
+ // if available.
+ void SetFormSelectedText(const FPDF_FORMHANDLE& hHandle,
+ const FPDF_PAGE& page);
+
// Given a mouse event, returns which page and character location it's closest
// to.
PDFiumPage::Area GetCharIndex(const pp::MouseInputEvent& event,
@@ -440,6 +445,9 @@ class PDFiumEngine : public PDFEngine,
// Setting selection status of document.
void SetSelecting(bool selecting);
+ // Sets status of whether or not focus is in form field text field.
Lei Zhang 2017/06/14 07:07:03 As mentioned in the PDFium-side CL, how about just
drgage 2017/06/14 22:53:40 Done.
+ void SetInFormTextField(bool in_form_text_field);
+
bool PageIndexInBounds(int index) const;
void ScheduleTouchTimer(const pp::TouchInputEvent& event);
@@ -646,6 +654,9 @@ class PDFiumEngine : public PDFEngine,
// True if we're in the middle of selection.
bool selecting_;
+ // True if focus is on form field text field.
+ bool in_form_text_field_;
+
MouseDownState mouse_down_state_;
// Used for searching.
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698