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

Unified Diff: pdf/instance.cc

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.h ('k') | pdf/out_of_process_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index d34871725de6bfc8949adbe586cbb2a0438ba557..93daf6f163901ebb2ff18f0d69cd93442ebe14af 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -367,8 +367,6 @@ bool Instance::Init(uint32_t argc, const char* argn[], const char* argv[]) {
CreatePageIndicator(IsPrintPreviewUrl(url));
- engine_->SetBackgroundColor(kBackgroundColor);
-
if (!full_) {
// For PDFs embedded in a frame, we don't get the data automatically like we
// do for full-frame loads. Start loading the data manually.
@@ -2643,6 +2641,10 @@ bool Instance::IsPrintPreview() {
return IsPrintPreviewUrl(url_);
}
+uint32 Instance::GetBackgroundColor() {
+ return kBackgroundColor;
+}
+
int Instance::GetPageNumberToDisplay() {
int page = engine_->GetMostVisiblePage();
if (IsPrintPreview() && !print_preview_page_numbers_.empty()) {
« no previous file with comments | « pdf/instance.h ('k') | pdf/out_of_process_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698