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; |