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

Unified Diff: pdf/out_of_process_instance.h

Issue 347763007: Improve scrolling performance in OOP PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index bd70be2c4ed724253649347e93397dd4b77b0ffb..d8aa2a7cce81301f9d3a3d1512193c12a6bd0bf4 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -26,7 +26,6 @@
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/private/find_private.h"
#include "ppapi/cpp/private/uma_private.h"
-#include "ppapi/cpp/private/var_private.h"
#include "ppapi/cpp/url_loader.h"
#include "ppapi/utility/completion_callback_factory.h"
@@ -284,10 +283,6 @@ class OutOfProcessInstance : public pp::Instance,
DocumentLoadState document_load_state_;
DocumentLoadState preview_document_load_state_;
- // JavaScript interface to control this instance.
- // This wraps a PDFScriptableObject in a pp::Var.
- pp::VarPrivate instance_object_;
-
// A UMA resource for histogram reporting.
pp::UMAPrivate uma_;
@@ -333,6 +328,11 @@ class OutOfProcessInstance : public pp::Instance,
// document finishes loading.
bool did_call_start_loading_;
+ // If this is true, then don't scroll the plugin in response to DidChangeView
+ // messages. This will be true when the extension page is in the process of
+ // zooming the plugin so that flickering doesn't occur while zooming.
+ bool stop_scrolling_;
+
// The callback for receiving the password from the page.
scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
};

Powered by Google App Engine
This is Rietveld 408576698