summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/webplugin_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 19:39:29 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 19:39:29 +0000
commit096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0 (patch)
treeb59e549c2ae6733f3d675a8982d109088adcea51 /chrome/plugin/webplugin_proxy.h
parent540f91b592b8a500442bccdebffbd34a4d8bc1bd (diff)
downloadchromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.zip
chromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.tar.gz
chromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.tar.bz2
Report the plugin position to windowed plugins as (0,0)
. the NPAPI documentation says it should be reported relative to the parent HWND, which is the plugin's coordinates on the page. This assumption breaks in Chrome because we have an intermediate HWND. I've tested on a bunch of pages to see if this change causes regressions, if we find any in the future we can reconsider this. BUG=6742 Review URL: http://codereview.chromium.org/42626 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/webplugin_proxy.h')
-rw-r--r--chrome/plugin/webplugin_proxy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/plugin/webplugin_proxy.h b/chrome/plugin/webplugin_proxy.h
index c51769d..78ca43c 100644
--- a/chrome/plugin/webplugin_proxy.h
+++ b/chrome/plugin/webplugin_proxy.h
@@ -35,7 +35,7 @@ class WebPluginProxy : public WebPlugin {
~WebPluginProxy();
// WebPlugin overrides
- void SetWindow(HWND window, HANDLE pump_messages_event);
+ bool SetWindow(HWND window, HANDLE pump_messages_event);
void CancelResource(int id);
void Invalidate();
void InvalidateRect(const gfx::Rect& rect);