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

Unified Diff: public/web/WebView.h

Issue 19883002: Expose a way to set a view's base background color. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix unittests for Android, to reland Created 7 years, 5 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 | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebView.h
diff --git a/public/web/WebView.h b/public/web/WebView.h
index 2af78f3047418b99e8e010a2cd72783a7c7f11ac..8d5cc5696564ba12b90a37c9c509e5c4ef2e0716 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -31,6 +31,7 @@
#ifndef WebView_h
#define WebView_h
+#include "../platform/WebColor.h"
#include "../platform/WebString.h"
#include "../platform/WebVector.h"
#include "WebDragOperation.h"
@@ -129,6 +130,16 @@ public:
virtual bool isTransparent() const = 0;
virtual void setIsTransparent(bool) = 0;
+ // Sets the base color used for this WebView's background. This is in effect
+ // the default background color used for pages with no background-color
+ // style in effect, or used as the alpha-blended basis for any pages with
+ // translucent background-color style. (For pages with opaque
+ // background-color style, this property is effectively ignored).
+ // Setting this takes effect for the currently loaded page, if any, and
+ // persists across subsequent navigations. Defaults to white prior to the
+ // first call to this method.
+ virtual void setBaseBackgroundColor(WebColor) = 0;
+
// Controls whether pressing Tab key advances focus to links.
virtual bool tabsToLinks() const = 0;
virtual void setTabsToLinks(bool) = 0;
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698