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

Issue 7617019: Add scroll and gesture message filters for UIPI Flash. (Closed)

Created:
9 years, 4 months ago by jschuh
Modified:
9 years, 4 months ago
CC:
cpu_(ooo_6.6-7.5), chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, ananta
Visibility:
Public.

Description

Add scroll and gesture message filters for UIPI Flash. Flash forwards some window messages when it has no handler set. The only ones I've observed are WM_MOUSEWHEEL, WM_APPCOMMAND (gestures are supported only on Win7). So, we need to allow these messages through the UIPI boundary. One important note is that I use per-process message filters on Vista, but per-window filters on Win7 or later (because they're supported). BUG=86810 TEST=None. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96876

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -4 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 3 chunks +35 lines, -1 line 1 comment Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_constants_win.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_constants_win.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
jschuh
@brettw - Content review. @ananta - Plugin changes. @cpu - In case you have anything ...
9 years, 4 months ago (2011-08-11 20:00:59 UTC) #1
brettw
LGTM. I don't really understand this, hopefully Ananta gives a good review.
9 years, 4 months ago (2011-08-11 20:53:26 UTC) #2
jschuh
@jam - Turns out @ananta is out. Do you mind reviewing this?
9 years, 4 months ago (2011-08-11 22:00:06 UTC) #3
Bernhard Bauer
webkit/plugins/npapi/ LGTM.
9 years, 4 months ago (2011-08-12 12:16:33 UTC) #4
jschuh
@cpu - Since @ananta is out and you're the next most familiar with the actual ...
9 years, 4 months ago (2011-08-12 13:27:40 UTC) #5
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/7617019/diff/7002/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7617019/diff/7002/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode459 chrome/browser/renderer_host/render_widget_host_view_win.cc:459: typedef BOOL (WINAPI *ChangeWindowMessageFilterExFunction)( no need to GetProcAddress ...
9 years, 4 months ago (2011-08-12 18:13:04 UTC) #6
jschuh
http://codereview.chromium.org/7617019/diff/7002/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7617019/diff/7002/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode459 chrome/browser/renderer_host/render_widget_host_view_win.cc:459: typedef BOOL (WINAPI *ChangeWindowMessageFilterExFunction)( On 2011/08/12 18:13:05, cpu wrote: ...
9 years, 4 months ago (2011-08-12 19:00:47 UTC) #7
M-A Ruel
http://codereview.chromium.org/7617019/diff/12010/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7617019/diff/12010/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode466 chrome/browser/renderer_host/render_widget_host_view_win.cc:466: static ChangeWindowMessageFilterExFunction s_ChangeWindowMessageFilterEx = Say No! to local static ...
9 years, 4 months ago (2011-08-12 23:50:05 UTC) #8
jam
9 years, 4 months ago (2011-08-26 00:29:11 UTC) #9
drive-by since I just noticed this code

http://codereview.chromium.org/7617019/diff/24008/chrome/browser/renderer_hos...
File chrome/browser/renderer_host/render_widget_host_view_win.cc (right):

http://codereview.chromium.org/7617019/diff/24008/chrome/browser/renderer_hos...
chrome/browser/renderer_host/render_widget_host_view_win.cc:487:
::SetPropW(orig_parent, webkit::npapi::kNativeWindowClassFilterProp, NULL);
this needs a matching call to RemoveProp(). per the SetProp msdn documentation:


Before a window is destroyed (that is, before it returns from processing the
WM_NCDESTROY message), an application must remove all entries it has added to
the property list. The application must use the RemoveProp function to remove
the entries.

Powered by Google App Engine
This is Rietveld 408576698