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

Unified Diff: webkit/tools/test_shell/mac/test_webview_delegate.mm

Issue 7746009: [Mac] Support windowless Flash plugin rendering directly to the context for single-process apps (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/mac/test_webview_delegate.mm
===================================================================
--- webkit/tools/test_shell/mac/test_webview_delegate.mm (revision 98412)
+++ webkit/tools/test_shell/mac/test_webview_delegate.mm (working copy)
@@ -16,6 +16,7 @@
#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
#include "webkit/tools/test_shell/test_shell.h"
+using webkit::npapi::WebPluginDelegateImpl;
using WebKit::WebCursorInfo;
using WebKit::WebNavigationPolicy;
using WebKit::WebPopupMenu;
@@ -176,8 +177,11 @@
return NULL;
gfx::PluginWindowHandle containing_view = NULL;
- return webkit::npapi::WebPluginDelegateImpl::Create(
- path, mime_type, containing_view);
+ WebPluginDelegateImpl* delegate =
+ WebPluginDelegateImpl::Create(path, mime_type, containing_view);
+ if (delegate)
+ delegate->SetNoBufferContext();
+ return delegate;
}
void TestWebViewDelegate::CreatedPluginWindow(
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl_mac.mm ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698