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

Unified Diff: pdf/pdf_engine.h

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: Rearrange function declarations 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/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 884daab24aa0fc0c05ca4bb5522be15dff33c432..4f821324f6dd0c62efb3a5125d911062544e9ec0 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -32,6 +32,7 @@ class VarDictionary;
}
const uint32 kBackgroundColor = 0xFFCCCCCC;
+const uint32 kBackgroundColorMaterial = 0xFFEEEEEE;
Alexandre Carlton 2015/01/29 04:48:56 raymes@: I am hesitant to shift these two variable
namespace chrome_pdf {
@@ -248,6 +249,11 @@ class PDFEngine {
// Returns number of copies to be printed.
virtual int GetCopiesToPrint() = 0;
+ // Retrieve the background color of the PDF viewer.
+ virtual uint32 GetBackgroundColor() = 0;
+ // Set the background color of the PDF viewer.
+ virtual void SetBackgroundColor(uint32 background_color) = 0;
+
// Returns a VarArray of Bookmarks, each a VarDictionary containing the
// following key/values:
// - "title" - a string Var.

Powered by Google App Engine
This is Rietveld 408576698