diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-11-21 14:09:57 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2013-11-29 15:14:36 +0100 |
commit | eb32ba6f51d0c21d58cd7d89785285ff8fa64624 (patch) | |
tree | 2c7c940e1dbee81b89d935626110816b494aa32c /chromium/content/public/browser | |
parent | 9427c1a0222ebd67efef1a2c7990a0fa5c9aac84 (diff) | |
download | qtwebengine-chromium-eb32ba6f51d0c21d58cd7d89785285ff8fa64624.tar.gz |
Update chromium to branch 1599.
Change-Id: I04e775a946a208bb4500d3b722bcb05c82b9d7cb
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'chromium/content/public/browser')
6 files changed, 22 insertions, 12 deletions
diff --git a/chromium/content/public/browser/android/synchronous_compositor_client.h b/chromium/content/public/browser/android/synchronous_compositor_client.h index dbd6d33bdf4..bfd647b931d 100644 --- a/chromium/content/public/browser/android/synchronous_compositor_client.h +++ b/chromium/content/public/browser/android/synchronous_compositor_client.h @@ -27,7 +27,8 @@ class SynchronousCompositorClient { // See LayerScrollOffsetDelegate for details. virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0; virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; - virtual void DidOverscroll(gfx::Vector2dF latest_overscroll_delta, + virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, + gfx::Vector2dF latest_overscroll_delta, gfx::Vector2dF current_fling_velocity) = 0; // When true, should periodically call diff --git a/chromium/content/public/browser/browser_plugin_guest_delegate.h b/chromium/content/public/browser/browser_plugin_guest_delegate.h index 73b477040cd..11facb9b5ed 100644 --- a/chromium/content/public/browser/browser_plugin_guest_delegate.h +++ b/chromium/content/public/browser/browser_plugin_guest_delegate.h @@ -11,7 +11,6 @@ #include "base/values.h" #include "content/common/content_export.h" #include "content/public/common/browser_plugin_permission_type.h" -#include "ui/gfx/size.h" namespace content { @@ -58,10 +57,6 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { BrowserPluginPermissionType permission_type, const base::DictionaryValue& request_info, const PermissionResponseCallback& callback); - - // Notifies that the content size of the guest has changed in autosize mode. - virtual void SizeChanged(const gfx::Size& old_size, - const gfx::Size& new_size) {} }; } // namespace content diff --git a/chromium/content/public/browser/content_browser_client.cc b/chromium/content/public/browser/content_browser_client.cc index c2bf137b077..4337c2da772 100644 --- a/chromium/content/public/browser/content_browser_client.cc +++ b/chromium/content/public/browser/content_browser_client.cc @@ -208,6 +208,7 @@ WebKit::WebNotificationPresenter::Permission bool ContentBrowserClient::CanCreateWindow( const GURL& opener_url, + const GURL& opener_top_level_frame_url, const GURL& source_origin, WindowContainerType container_type, const GURL& target_url, diff --git a/chromium/content/public/browser/content_browser_client.h b/chromium/content/public/browser/content_browser_client.h index 21687691706..56c01775e65 100644 --- a/chromium/content/public/browser/content_browser_client.h +++ b/chromium/content/public/browser/content_browser_client.h @@ -451,6 +451,7 @@ class CONTENT_EXPORT ContentBrowserClient { // the window that is created should be scriptable/in the same process. // This is called on the IO thread. virtual bool CanCreateWindow(const GURL& opener_url, + const GURL& opener_top_level_frame_url, const GURL& source_origin, WindowContainerType container_type, const GURL& target_url, diff --git a/chromium/content/public/browser/web_contents_delegate.cc b/chromium/content/public/browser/web_contents_delegate.cc index 47e30b2acba..964206d31e1 100644 --- a/chromium/content/public/browser/web_contents_delegate.cc +++ b/chromium/content/public/browser/web_contents_delegate.cc @@ -127,8 +127,11 @@ bool WebContentsDelegate::ShouldCreateWebContents( WindowContainerType window_container_type, const string16& frame_name, const GURL& target_url, - const std::string& partition_id, - SessionStorageNamespace* session_storage_namespace) { + const Referrer& referrer, + WindowOpenDisposition disposition, + const WebKit::WebWindowFeatures& features, + bool user_gesture, + bool opener_suppressed) { return true; } @@ -146,6 +149,13 @@ content::ColorChooser* WebContentsDelegate::OpenColorChooser( return NULL; } +void WebContentsDelegate::RequestMediaAccessPermission( + WebContents* web_contents, + const MediaStreamRequest& request, + const MediaResponseCallback& callback) { + callback.Run(MediaStreamDevices(), scoped_ptr<MediaStreamUI>()); +} + bool WebContentsDelegate::RequestPpapiBrokerPermission( WebContents* web_contents, const GURL& url, diff --git a/chromium/content/public/browser/web_contents_delegate.h b/chromium/content/public/browser/web_contents_delegate.h index 69ac871c85e..aa1bb4e3472 100644 --- a/chromium/content/public/browser/web_contents_delegate.h +++ b/chromium/content/public/browser/web_contents_delegate.h @@ -37,7 +37,6 @@ class DownloadItem; class JavaScriptDialogManager; class PageState; class RenderViewHost; -class SessionStorageNamespace; class WebContents; class WebContentsImpl; struct ContextMenuParams; @@ -301,8 +300,11 @@ class CONTENT_EXPORT WebContentsDelegate { WindowContainerType window_container_type, const string16& frame_name, const GURL& target_url, - const std::string& partition_id, - SessionStorageNamespace* session_storage_namespace); + const Referrer& referrer, + WindowOpenDisposition disposition, + const WebKit::WebWindowFeatures& features, + bool user_gesture, + bool opener_suppressed); // Notifies the delegate about the creation of a new WebContents. This // typically happens when popups are created. @@ -422,7 +424,7 @@ class CONTENT_EXPORT WebContentsDelegate { virtual void RequestMediaAccessPermission( WebContents* web_contents, const MediaStreamRequest& request, - const MediaResponseCallback& callback) {} + const MediaResponseCallback& callback); // Requests permission to access the PPAPI broker. The delegate should return // true and call the passed in |callback| with the result, or return false |