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

Unified Diff: pdf/pdfium/pdfium_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: Fix nits 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 | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index d7b48355666c4fddb257b85e22d19065e89b5ff9..331d37b95ac06b44982d2039c09347a3d7194b73 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -80,6 +80,8 @@ class PDFiumEngine : public PDFEngine,
virtual bool HasPermission(DocumentPermission permission) const;
virtual void SelectAll();
virtual int GetNumberOfPages();
+ virtual uint32 GetBackgroundColor();
+ virtual void SetBackgroundColor(uint32 backgroundColor);
virtual pp::VarArray GetBookmarks();
virtual int GetNamedDestinationPage(const std::string& destination);
virtual pp::VarDictionary GetNamedDestinations();
@@ -681,6 +683,9 @@ class PDFiumEngine : public PDFEngine,
// Whether to render in grayscale or in color.
bool render_grayscale_;
+ // Background color of the PDF.
+ uint32 background_color_;
Sam McNally 2015/02/02 00:50:52 Is this initialized anywhere?
Alexandre Carlton 2015/02/02 01:51:39 No, should it be initialised to 0xFFFFFFFF, or one
+
// The link currently under the cursor.
std::string link_under_cursor_;
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698