mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 05:00:48 +01:00
- Add CefBrowserSettings.background_color for custom background color assignment on a per-browser basis and fix assignment of the default value (issue #1161). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1658 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
Index: content_browser_client.cc
|
|
===================================================================
|
|
--- content_browser_client.cc (revision 258314)
|
|
+++ content_browser_client.cc (working copy)
|
|
@@ -253,6 +253,10 @@
|
|
return true;
|
|
}
|
|
|
|
+SkColor ContentBrowserClient::GetBaseBackgroundColor(RenderViewHost* rvh) {
|
|
+ return SK_ColorWHITE;
|
|
+}
|
|
+
|
|
base::FilePath ContentBrowserClient::GetDefaultDownloadDirectory() {
|
|
return base::FilePath();
|
|
}
|
|
Index: content_browser_client.h
|
|
===================================================================
|
|
--- content_browser_client.h (revision 258314)
|
|
+++ content_browser_client.h (working copy)
|
|
@@ -23,6 +23,7 @@
|
|
#include "net/base/mime_util.h"
|
|
#include "net/cookies/canonical_cookie.h"
|
|
#include "net/url_request/url_request_job_factory.h"
|
|
+#include "third_party/skia/include/core/SkColor.h"
|
|
#include "third_party/WebKit/public/web/WebNotificationPresenter.h"
|
|
#include "ui/base/window_open_disposition.h"
|
|
#include "webkit/common/resource_type.h"
|
|
@@ -517,6 +518,9 @@
|
|
// Clears browser cookies.
|
|
virtual void ClearCookies(RenderViewHost* rvh) {}
|
|
|
|
+ // Returns the base background color.
|
|
+ virtual SkColor GetBaseBackgroundColor(RenderViewHost* rvh);
|
|
+
|
|
// Returns the default download directory.
|
|
// This can be called on any thread.
|
|
virtual base::FilePath GetDefaultDownloadDirectory();
|