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

Unified Diff: webkit/glue/webplugin_delegate.h

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/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_delegate.h
diff --git a/webkit/glue/webplugin_delegate.h b/webkit/glue/webplugin_delegate.h
index 16d9c50283e16d5ac2d1730fae0c4616331f5507..4581a829d3154dc7ac9797ea2c269b7a447e53ce 100644
--- a/webkit/glue/webplugin_delegate.h
+++ b/webkit/glue/webplugin_delegate.h
@@ -12,8 +12,10 @@
#include "base/file_path.h"
#include "base/gfx/native_widget_types.h"
#include "base/gfx/rect.h"
+#include "build/build_config.h"
#include "third_party/npapi/bindings/npapi.h"
+// TODO(port): put in OS_WIN check.
typedef struct HDC__* HDC;
struct NPObject;
@@ -53,12 +55,24 @@ class WebPluginDelegate {
virtual void UpdateGeometry(const gfx::Rect& window_rect,
const gfx::Rect& clip_rect) = 0;
+#if defined(OS_WIN)
// Tells the plugin to paint the damaged rect. The HDC is only used for
// windowless plugins.
virtual void Paint(HDC hdc, const gfx::Rect& rect) = 0;
// Tells the plugin to print itself.
virtual void Print(HDC hdc) = 0;
+#else
+ // TODO(port): these are not intended to be implementable for now,
+ // and will have the prototypes fixed once they are implemented.
+
+ // Tells the plugin to paint the damaged rect. The HDC is only used for
+ // windowless plugins.
+ virtual void Paint(void* dc, const gfx::Rect& rect) = 0;
+
+ // Tells the plugin to print itself.
+ virtual void Print(void* dc) = 0;
+#endif
// Informs the plugin that it now has focus.
virtual void SetFocus() = 0;
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698