summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 16:54:21 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 16:54:21 +0000
commite3a8c580aa929092701bc4cc2eaa51b4e89c6063 (patch)
tree1184954c83eab6ca0eeaa9d6c86a494b1631d467 /webkit/glue/plugins
parentce48278126ceaa74cf45663d1f69b6fc30e71ea1 (diff)
downloadchromium_src-e3a8c580aa929092701bc4cc2eaa51b4e89c6063.zip
chromium_src-e3a8c580aa929092701bc4cc2eaa51b4e89c6063.tar.gz
chromium_src-e3a8c580aa929092701bc4cc2eaa51b4e89c6063.tar.bz2
Update NPAPI header file to v24, apply Google modifications
Review URL: http://codereview.chromium.org/208007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins')
-rw-r--r--webkit/glue/plugins/webplugin_delegate_impl_mac.mm14
1 files changed, 8 insertions, 6 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm
index 826f60c..ecb2c6f 100644
--- a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm
+++ b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm
@@ -104,7 +104,7 @@ WebPluginDelegateImpl::WebPluginDelegateImpl(
WebPluginDelegateImpl::~WebPluginDelegateImpl() {
FakePluginWindowTracker::SharedInstance()->RemoveFakeWindowForDelegate(
- this, cg_context_.window);
+ this, reinterpret_cast<WindowRef>(cg_context_.window));
DestroyInstance();
}
@@ -149,7 +149,8 @@ bool WebPluginDelegateImpl::Initialize(const GURL& url,
cg_context_.window = window_tracker->GenerateFakeWindowForDelegate(this);
cg_context_.context = NULL;
Rect window_bounds = { 0, 0, window_rect_.height(), window_rect_.width() };
- SetWindowBounds(cg_context_.window, kWindowContentRgn, &window_bounds);
+ SetWindowBounds(reinterpret_cast<WindowRef>(cg_context_.window),
+ kWindowContentRgn, &window_bounds);
window_.window = &cg_context_;
window_.type = NPWindowTypeWindow;
@@ -358,9 +359,9 @@ void WebPluginDelegateImpl::WindowlessSetWindow(bool force_set_window) {
window_.x = 0;
window_.y = 0;
- UpdateDummyWindowBoundsWithOffset(cg_context_.window, window_rect_.x(),
- window_rect_.y(), window_rect_.width(),
- window_rect_.height());
+ UpdateDummyWindowBoundsWithOffset(
+ reinterpret_cast<WindowRef>(cg_context_.window), window_rect_.x(),
+ window_rect_.y(), window_rect_.width(), window_rect_.height());
NPError err = instance()->NPP_SetWindow(&window_);
DCHECK(err == NPERR_NO_ERROR);
@@ -529,7 +530,8 @@ bool WebPluginDelegateImpl::HandleInputEvent(const WebInputEvent& event,
if (WebInputEventIsWebMouseEvent(event)) {
const WebMouseEvent* mouse_event =
static_cast<const WebMouseEvent*>(&event);
- UpdateWindowLocation(cg_context_.window, *mouse_event);
+ UpdateWindowLocation(reinterpret_cast<WindowRef>(cg_context_.window),
+ *mouse_event);
}
CGContextSaveGState(cg_context_.context);
bool ret = instance()->NPP_HandleEvent(&np_event) != 0;