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

Unified Diff: webkit/glue/webplugin_impl.cc

Issue 19413: Linux plugins WIP. (Closed)
Patch Set: review comments Created 11 years, 11 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
« no previous file with comments | « webkit/glue/webplugin_delegate.h ('k') | webkit/tools/test_shell/test_webview_delegate_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.cc
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 4b3cdb76f62d367fc0018f8764db6fcc243a7802..fdaf6f0388bbc43e92d5211eab0873bc6854ee4e 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -706,19 +706,20 @@ void WebPluginImpl::paint(WebCore::GraphicsContext* gc,
static_cast<float>(origin.y()));
#if defined(OS_WIN)
- // HDC is only used when in windowless mode.
- HDC hdc = gc->platformContext()->canvas()->beginPlatformPaint();
+ // Note that HDC is only used when in windowless mode.
+ HDC dc = gc->platformContext()->canvas()->beginPlatformPaint();
#else
- NOTIMPLEMENTED();
+ // TODO(port): the equivalent of the above.
+ void* dc = NULL; // Temporary, to reduce ifdefs.
#endif
WebCore::IntRect window_rect =
WebCore::IntRect(view->contentsToWindow(damage_rect.location()),
damage_rect.size());
-#if defined(OS_WIN)
- delegate_->Paint(hdc, webkit_glue::FromIntRect(window_rect));
+ delegate_->Paint(dc, webkit_glue::FromIntRect(window_rect));
+#if defined(OS_WIN)
gc->platformContext()->canvas()->endPlatformPaint();
#endif
gc->restore();
« no previous file with comments | « webkit/glue/webplugin_delegate.h ('k') | webkit/tools/test_shell/test_webview_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698