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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.cc

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT Created 6 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/browser_plugin_guest_delegate.h" 5 #include "content/public/browser/browser_plugin_guest_delegate.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 WebContents* BrowserPluginGuestDelegate::GetOpener() const {
12 return NULL;
13 }
14
15 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { 11 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() {
16 return false; 12 return false;
17 } 13 }
18 14
19 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const {
20 return false;
21 }
22
23 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) {
24 return GURL(src);
25 }
26
27 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( 15 void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
28 const MediaStreamRequest& request, 16 const MediaStreamRequest& request,
29 const MediaResponseCallback& callback) { 17 const MediaResponseCallback& callback) {
30 callback.Run(MediaStreamDevices(), 18 callback.Run(MediaStreamDevices(),
31 MEDIA_DEVICE_INVALID_STATE, 19 MEDIA_DEVICE_INVALID_STATE,
32 scoped_ptr<MediaStreamUI>()); 20 scoped_ptr<MediaStreamUI>());
33 } 21 }
34 22
35 void BrowserPluginGuestDelegate::CanDownload( 23 void BrowserPluginGuestDelegate::CanDownload(
36 const std::string& request_method, 24 const std::string& request_method,
(...skipping 12 matching lines...) Expand all
49 SkColor color, 37 SkColor color,
50 const std::vector<ColorSuggestion>& suggestions) { 38 const std::vector<ColorSuggestion>& suggestions) {
51 return NULL; 39 return NULL;
52 } 40 }
53 41
54 bool BrowserPluginGuestDelegate::HandleContextMenu( 42 bool BrowserPluginGuestDelegate::HandleContextMenu(
55 const ContextMenuParams& params) { 43 const ContextMenuParams& params) {
56 return false; 44 return false;
57 } 45 }
58 46
47 WebContents* BrowserPluginGuestDelegate::OpenURLFromTab(
48 WebContents* source,
49 const OpenURLParams& params) {
50 return NULL;
51 }
52
59 } // namespace content 53 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698