summaryrefslogtreecommitdiffstats
path: root/pdf/out_of_process_instance.h
diff options
context:
space:
mode:
authorraymes <raymes@chromium.org>2015-02-08 18:36:13 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-09 02:36:36 +0000
commit8a9c0f30c6a73cc644da0a1a736f6bb0e6fd81b5 (patch)
treec17e6f8eb2fb851191f1d2e1180565170a183b50 /pdf/out_of_process_instance.h
parent8533a5153222d72c6f5485581663db13f285bfaf (diff)
downloadchromium_src-8a9c0f30c6a73cc644da0a1a736f6bb0e6fd81b5.zip
chromium_src-8a9c0f30c6a73cc644da0a1a736f6bb0e6fd81b5.tar.gz
chromium_src-8a9c0f30c6a73cc644da0a1a736f6bb0e6fd81b5.tar.bz2
Make the PDF viewer background color a property of the instance.
This simplifies how the background color is set and makes it work for print preview. BUG= 456621 Review URL: https://codereview.chromium.org/874663006 Cr-Commit-Position: refs/heads/master@{#315256}
Diffstat (limited to 'pdf/out_of_process_instance.h')
-rw-r--r--pdf/out_of_process_instance.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index eb30458..58e9b29 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