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

Unified Diff: pdf/pdf_engine.h

Issue 2855953003: Handle long press in PDF documents. (Closed)
Patch Set: Rebase to master Created 3 years, 7 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 3a271e2d1cd178d059acb588f8d5fbac91c08bcf..ac18b5eb7bd0c1c62453561b461abfdd198f9279 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -140,9 +140,12 @@ class PDFEngine {
// Creates and returns new URL loader for partial document requests.
virtual pp::URLLoader CreateURLLoader() = 0;
- // Calls the client's OnCallback() function in delay_in_ms with the given
- // id.
+ // Calls the client's OnCallback() function in |delay_in_ms| with the given
+ // |id|.
virtual void ScheduleCallback(int id, int delay_in_ms) = 0;
+ // Calls the client's OnTouchTimerCallback() function in |delay_in_ms| with
+ // the given |id|.
+ virtual void ScheduleTouchTimerCallback(int id, int delay_in_ms) = 0;
// Searches the given string for "term" and returns the results. Unicode-
// aware.
@@ -251,6 +254,8 @@ class PDFEngine {
virtual void SetGrayscale(bool grayscale) = 0;
// Callback for timer that's set with ScheduleCallback().
virtual void OnCallback(int id) = 0;
+ // Callback for timer that's set with ScheduleTouchTimerCallback().
+ virtual void OnTouchTimerCallback(int id) = 0;
// Get the number of characters on a given page.
virtual int GetCharCount(int page_index) = 0;
// Get the bounds in page pixels of a character on a given page.
« 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