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

Unified Diff: pdf/out_of_process_instance.h

Issue 865023002: Delay printing OOP PDF until loading is complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-scripting
Patch Set: Created 5 years, 11 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/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index 8a841bf251eadb8540ad6a473b4bc3c29a8b4cfa..bcd507dd3da3231a891272ef873e2303ba1b101a 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -236,7 +236,6 @@ class OutOfProcessInstance : public pp::Instance,
double zoom_; // Current zoom factor.
float device_scale_; // Current device scale factor.
- bool printing_enabled_;
// True if the plugin is full-page.
bool full_;
@@ -340,6 +339,10 @@ class OutOfProcessInstance : public pp::Instance,
// zooming the plugin so that flickering doesn't occur while zooming.
bool stop_scrolling_;
+ // If a print command comes in before the document has loaded, we set
+ // |delay_print_| to true and print after the document has loaded.
+ bool delay_print_;
+
// The callback for receiving the password from the page.
scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
};
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698