diff options
Diffstat (limited to 'chromium/content/public/browser/web_contents_delegate.cc')
-rw-r--r-- | chromium/content/public/browser/web_contents_delegate.cc | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/chromium/content/public/browser/web_contents_delegate.cc b/chromium/content/public/browser/web_contents_delegate.cc index 63ad65baeab..0028339ab63 100644 --- a/chromium/content/public/browser/web_contents_delegate.cc +++ b/chromium/content/public/browser/web_contents_delegate.cc @@ -27,8 +27,6 @@ bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { return false; } -bool WebContentsDelegate::CanLoadDataURLsInWebUI() const { return false; } - bool WebContentsDelegate::CanOverscrollContent() const { return false; } gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { @@ -39,6 +37,10 @@ bool WebContentsDelegate::ShouldSuppressDialogs() { return false; } +bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) { + return false; +} + bool WebContentsDelegate::AddMessageToConsole(WebContents* source, int32 level, const base::string16& message, @@ -71,7 +73,7 @@ int WebContentsDelegate::GetExtraRenderViewHeight() const { void WebContentsDelegate::CanDownload( RenderViewHost* render_view_host, - int request_id, + const GURL& url, const std::string& request_method, const base::Callback<void(bool)>& callback) { callback.Run(true); @@ -110,6 +112,12 @@ bool WebContentsDelegate::PreHandleKeyboardEvent( return false; } +bool WebContentsDelegate::PreHandleGestureEvent( + WebContents* source, + const blink::WebGestureEvent& event) { + return false; +} + bool WebContentsDelegate::CanDragEnter( WebContents* source, const DropData& data, @@ -156,7 +164,9 @@ void WebContentsDelegate::RequestMediaAccessPermission( WebContents* web_contents, const MediaStreamRequest& request, const MediaResponseCallback& callback) { - callback.Run(MediaStreamDevices(), scoped_ptr<MediaStreamUI>()); + callback.Run(MediaStreamDevices(), + MEDIA_DEVICE_INVALID_STATE, + scoped_ptr<MediaStreamUI>()); } bool WebContentsDelegate::RequestPpapiBrokerPermission( @@ -186,8 +196,12 @@ void WebContentsDelegate::Detach(WebContents* web_contents) { } gfx::Size WebContentsDelegate::GetSizeForNewRenderView( - const WebContents* web_contents) const { + WebContents* web_contents) const { return gfx::Size(); } +bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { + return false; +} + } // namespace content |