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

Unified Diff: pdf/out_of_process_instance.h

Issue 1901903002: Improved Pinch-Zoom for PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_add_set_layer_transform
Patch Set: Clean code part 2 Created 4 years, 8 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 0842d33bde12371729a40d223757931d066b80a1..2c71d7eb453fecdc464cb77a0b32b1ae3f2740f7 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -222,9 +222,17 @@ class OutOfProcessInstance : public pp::Instance,
// there are 10 pages, the height will be 8000).
pp::Size document_size_;
- double zoom_; // Current zoom factor.
-
- float device_scale_; // Current device scale factor.
+ // Current zoom factor.
+ double zoom_;
+ double old_zoom_, initial_zoom_delta_;
+ // True if we request a new bitmap rendering.
+ int do_render_;
wjmaclean 2016/04/21 14:11:02 Make do_render_ bool.
alessandroa 2016/04/22 14:33:05 Done.
+ // Scroll at the begining of zooming.
+ pp::FloatPoint last_current_scroll_;
+ // True if last bitmap was smaller then screen.
wjmaclean 2016/04/21 14:11:02 "then" -> "than" By "screen", we mean the PDF dis
alessandroa 2016/04/22 14:33:05 Done. Yep, if the pdf document size is smaller the
+ bool was_smaller_;
+ // Current device scale factor.
+ float device_scale_;
// True if the plugin is full-page.
bool full_;

Powered by Google App Engine
This is Rietveld 408576698