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

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: Initialise background color to 0. 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
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('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/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index 72b08af0b79c48d12aa4525b2adf2c374cc6e510..d34871725de6bfc8949adbe586cbb2a0438ba557 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.
@@ -365,6 +367,8 @@ 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.
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698