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

Unified Diff: pdf/out_of_process_instance.h

Issue 874663006: Make the PDF viewer background color a property of the instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/instance.cc ('k') | 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 eb304580fbb536300399243cb596322a04e16e22..58e9b293f8298c50002256bd7250209fc53f990f 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -136,6 +136,7 @@ class OutOfProcessInstance : public pp::Instance,
void DocumentLoadProgress(uint32 available, uint32 doc_size) override;
void FormTextFieldFocusChange(bool in_focus) override;
bool IsPrintPreview() override;
+ uint32 GetBackgroundColor() override;
// PreviewModeClient::Client implementation.
void PreviewDocumentLoadComplete() override;
@@ -283,6 +284,9 @@ class OutOfProcessInstance : public pp::Instance,
// Used for printing without re-entrancy issues.
pp::CompletionCallbackFactory<OutOfProcessInstance> print_callback_factory_;
+ // The callback for receiving the password from the page.
+ scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
+
// True if we haven't painted the plugin viewport yet.
bool first_paint_;
@@ -339,8 +343,8 @@ class OutOfProcessInstance : public pp::Instance,
// 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_;
+ // The background color of the PDF viewer.
+ uint32 background_color_;
};
} // namespace chrome_pdf
« no previous file with comments | « pdf/instance.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698