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

Unified Diff: pdf/out_of_process_instance.h

Issue 2855953003: Handle long press in PDF documents. (Closed)
Patch Set: Review feedback 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
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index f2435bc69c4ea6f34592e04e61775aea2b0bd2e1..9bf51df86136bb2a16a678c681f503de780c5456 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -84,6 +84,7 @@ class OutOfProcessInstance : public pp::Instance,
// Called when the timer is fired.
void OnClientTimerFired(int32_t id);
+ void OnClientTouchTimerFired(int32_t id);
// Called to print without re-entrancy issues.
void OnPrint(int32_t);
@@ -120,6 +121,7 @@ class OutOfProcessInstance : public pp::Instance,
std::string ShowFileSelectionDialog() override;
pp::URLLoader CreateURLLoader() override;
void ScheduleCallback(int id, int delay_in_ms) override;
+ void ScheduleTouchTimerCallback(int id, int delay_in_ms) override;
void SearchString(const base::char16* string,
const base::char16* term,
bool case_sensitive,
@@ -235,6 +237,8 @@ class OutOfProcessInstance : public pp::Instance,
// Size of entire document in pixels (i.e. if each page is 800 pixels high and
// there are 10 pages, the height will be 8000).
pp::Size document_size_;
+ // The scroll offset
Lei Zhang 2017/05/04 19:29:26 Can you mention the units?
dsinclair 2017/05/04 20:26:18 Done.
+ pp::Point scroll_offset_;
// Enumeration of pinch states.
// This should match PinchPhase enum in

Powered by Google App Engine
This is Rietveld 408576698