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

Unified Diff: pdf/instance.cc

Issue 871403005: Switch the background color in PDF Viewer when using Material Design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change background-color in index-material.css 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
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index 72b08af0b79c48d12aa4525b2adf2c374cc6e510..e097e46240dd5bb6fa5d1312fb5695e129c09cc8 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -56,6 +56,8 @@ struct ToolbarButtonInfo {
PP_ResourceImage pressed;
};
+const uint32 kBackgroundColor = 0xFFCCCCCC;
+
namespace {
// Uncomment following #define to enable thumbnails.
@@ -343,6 +345,8 @@ bool Instance::Init(uint32_t argc, const char* argn[], const char* argv[]) {
arraysize(kPDFNoPrintToolbarButtons));
}
+ engine_->SetBackgroundColor(kBackgroundColor);
+
CreateProgressBar();
// Load autoscroll anchor image.

Powered by Google App Engine
This is Rietveld 408576698