mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-30 11:04:52 +01:00
0b78461f5b
- Building Chromium using SVN is no longer supported. - Remove CefDOMEvent and CefDOMEventListener (issue #933). - Remove CefRenderHandler::OnScrollOffsetChanged (http://crbug.com/404656). - Remove UR_FLAG_REPORT_LOAD_TIMING (https://codereview.chromium.org/451623002/). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1816 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
133 lines
4.5 KiB
Diff
133 lines
4.5 KiB
Diff
diff --git content_browser_client.cc content_browser_client.cc
|
|
index d982b69..9272897 100644
|
|
--- content_browser_client.cc
|
|
+++ content_browser_client.cc
|
|
@@ -276,6 +276,10 @@ bool ContentBrowserClient::IsFastShutdownPossible() {
|
|
return true;
|
|
}
|
|
|
|
+SkColor ContentBrowserClient::GetBaseBackgroundColor(RenderViewHost* rvh) {
|
|
+ return SK_ColorWHITE;
|
|
+}
|
|
+
|
|
base::FilePath ContentBrowserClient::GetDefaultDownloadDirectory() {
|
|
return base::FilePath();
|
|
}
|
|
diff --git content_browser_client.h content_browser_client.h
|
|
index f8253a6..d82c177 100644
|
|
--- content_browser_client.h
|
|
+++ content_browser_client.h
|
|
@@ -25,6 +25,7 @@
|
|
#include "net/cookies/canonical_cookie.h"
|
|
#include "net/url_request/url_request_interceptor.h"
|
|
#include "net/url_request/url_request_job_factory.h"
|
|
+#include "third_party/skia/include/core/SkColor.h"
|
|
#include "third_party/WebKit/public/platform/WebNotificationPermission.h"
|
|
#include "ui/base/window_open_disposition.h"
|
|
#include "webkit/browser/fileapi/file_system_context.h"
|
|
@@ -526,6 +527,9 @@ class CONTENT_EXPORT ContentBrowserClient {
|
|
// 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();
|
|
diff --git web_contents.cc web_contents.cc
|
|
index 7afc338..c014439 100644
|
|
--- web_contents.cc
|
|
+++ web_contents.cc
|
|
@@ -17,7 +17,9 @@ WebContents::CreateParams::CreateParams(BrowserContext* context)
|
|
main_frame_routing_id(MSG_ROUTING_NONE),
|
|
initially_hidden(false),
|
|
guest_delegate(NULL),
|
|
- context(NULL) {}
|
|
+ context(NULL),
|
|
+ view(NULL),
|
|
+ delegate_view(NULL) {}
|
|
|
|
WebContents::CreateParams::CreateParams(
|
|
BrowserContext* context, SiteInstance* site)
|
|
@@ -29,7 +31,9 @@ WebContents::CreateParams::CreateParams(
|
|
main_frame_routing_id(MSG_ROUTING_NONE),
|
|
initially_hidden(false),
|
|
guest_delegate(NULL),
|
|
- context(NULL) {}
|
|
+ context(NULL),
|
|
+ view(NULL),
|
|
+ delegate_view(NULL) {}
|
|
|
|
WebContents::CreateParams::~CreateParams() {
|
|
}
|
|
diff --git web_contents.h web_contents.h
|
|
index 80766dc..025c8c7 100644
|
|
--- web_contents.h
|
|
+++ web_contents.h
|
|
@@ -52,9 +52,11 @@ class PageState;
|
|
class RenderFrameHost;
|
|
class RenderProcessHost;
|
|
class RenderViewHost;
|
|
+class RenderViewHostDelegateView;
|
|
class RenderWidgetHostView;
|
|
class SiteInstance;
|
|
class WebContentsDelegate;
|
|
+class WebContentsView;
|
|
struct CustomContextMenuContext;
|
|
struct DropData;
|
|
struct RendererPreferences;
|
|
@@ -117,6 +119,10 @@ class WebContents : public PageNavigator,
|
|
// Used to specify the location context which display the new view should
|
|
// belong. This can be NULL if not needed.
|
|
gfx::NativeView context;
|
|
+
|
|
+ // Optionally specify the view and delegate view.
|
|
+ content::WebContentsView* view;
|
|
+ content::RenderViewHostDelegateView* delegate_view;
|
|
};
|
|
|
|
// Creates a new WebContents.
|
|
diff --git web_contents_delegate.cc web_contents_delegate.cc
|
|
index 0028339..477040e 100644
|
|
--- web_contents_delegate.cc
|
|
+++ web_contents_delegate.cc
|
|
@@ -136,7 +136,9 @@ bool WebContentsDelegate::ShouldCreateWebContents(
|
|
const base::string16& frame_name,
|
|
const GURL& target_url,
|
|
const std::string& partition_id,
|
|
- SessionStorageNamespace* session_storage_namespace) {
|
|
+ SessionStorageNamespace* session_storage_namespace,
|
|
+ content::WebContentsView** view,
|
|
+ content::RenderViewHostDelegateView** delegate_view) {
|
|
return true;
|
|
}
|
|
|
|
diff --git web_contents_delegate.h web_contents_delegate.h
|
|
index b9aa02d..d840775 100644
|
|
--- web_contents_delegate.h
|
|
+++ web_contents_delegate.h
|
|
@@ -37,9 +37,11 @@ class DownloadItem;
|
|
class JavaScriptDialogManager;
|
|
class PageState;
|
|
class RenderViewHost;
|
|
+class RenderViewHostDelegateView;
|
|
class SessionStorageNamespace;
|
|
class WebContents;
|
|
class WebContentsImpl;
|
|
+class WebContentsView;
|
|
struct ColorSuggestion;
|
|
struct ContextMenuParams;
|
|
struct DropData;
|
|
@@ -312,7 +314,9 @@ class CONTENT_EXPORT WebContentsDelegate {
|
|
const base::string16& frame_name,
|
|
const GURL& target_url,
|
|
const std::string& partition_id,
|
|
- SessionStorageNamespace* session_storage_namespace);
|
|
+ SessionStorageNamespace* session_storage_namespace,
|
|
+ content::WebContentsView** view,
|
|
+ content::RenderViewHostDelegateView** delegate_view);
|
|
|
|
// Notifies the delegate about the creation of a new WebContents. This
|
|
// typically happens when popups are created.
|