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

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed)

Created:
9 years, 3 months ago by yzshen1
Modified:
9 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Mouse lock implementation, including the renderer side and the Windows version of the browser side. BUG=41781 TEST=Manual test in ppapi/examples/mouse_lock Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102234

Patch Set 1 #

Total comments: 8

Patch Set 2 : Make changes according to Vincent's suggestions. #

Patch Set 3 : Solve a few TODO's. #

Patch Set 4 : Remove two tab chars. #

Total comments: 19

Patch Set 5 : sync & changes according to Brett's suggestions. #

Patch Set 6 : Fix test_shell_tests. #

Total comments: 1

Patch Set 7 : Move contructor definition to .cc file. #

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+820 lines, -37 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 3 4 6 chunks +41 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 1 2 3 4 5 6 3 chunks +14 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view.cc View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 4 chunks +20 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 8 chunks +121 lines, -6 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 3 chunks +20 lines, -2 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 3 4 5 chunks +31 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 7 chunks +129 lines, -2 lines 0 comments Download
M content/renderer/render_view.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 3 chunks +15 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -6 lines 0 comments Download
A ppapi/examples/mouse_lock/mouse_lock.cc View 1 2 3 4 1 chunk +272 lines, -0 lines 0 comments Download
A ppapi/examples/mouse_lock/mouse_lock.html View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/event_conversion.cc View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scheib
I've read through all the logic - it looks pretty good, though there are areas ...
9 years, 3 months ago (2011-09-09 22:00:06 UTC) #1
yzshen1
Thanks Vincent. http://codereview.chromium.org/7863003/diff/1/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/7863003/diff/1/content/renderer/pepper_plugin_delegate_impl.cc#newcode1052 content/renderer/pepper_plugin_delegate_impl.cc:1052: webkit::ppapi::PluginInstance* temp = mouse_lock_owner_; On 2011/09/09 22:00:06, ...
9 years, 3 months ago (2011-09-09 23:16:04 UTC) #2
yzshen1
Hi, Vincent, Brett. Please take a look. Thanks! Vincent: make sure that the behavior conforms ...
9 years, 3 months ago (2011-09-13 22:51:11 UTC) #3
scheib
LGTM still with one minor nit on the example. http://codereview.chromium.org/7863003/diff/13002/ppapi/examples/mouse_lock/mouse_lock.cc File ppapi/examples/mouse_lock/mouse_lock.cc (right): http://codereview.chromium.org/7863003/diff/13002/ppapi/examples/mouse_lock/mouse_lock.cc#newcode69 ppapi/examples/mouse_lock/mouse_lock.cc:69: ...
9 years, 3 months ago (2011-09-14 18:13:23 UTC) #4
brettw
http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view.h File content/browser/renderer_host/render_widget_host_view.h (right): http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view.h#newcode332 content/browser/renderer_host/render_widget_host_view.h:332: virtual bool LockMouse(); These should probably be pure virtual ...
9 years, 3 months ago (2011-09-14 22:17:57 UTC) #5
scheib
http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view_win.cc#newcode1528 content/browser/renderer_host/render_widget_host_view_win.cc:1528: ::ClipCursor(&rect); On 2011/09/14 22:17:58, brettw wrote: > Is this ...
9 years, 3 months ago (2011-09-14 22:24:50 UTC) #6
yzshen1
Thanks Brett and Vincent! http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view.h File content/browser/renderer_host/render_widget_host_view.h (right): http://codereview.chromium.org/7863003/diff/13002/content/browser/renderer_host/render_widget_host_view.h#newcode332 content/browser/renderer_host/render_widget_host_view.h:332: virtual bool LockMouse(); Good idea, ...
9 years, 3 months ago (2011-09-19 20:48:41 UTC) #7
brettw
LGTM, I mostly did a high-level review http://codereview.chromium.org/7863003/diff/27001/content/browser/renderer_host/render_widget_host_view.h File content/browser/renderer_host/render_widget_host_view.h (right): http://codereview.chromium.org/7863003/diff/27001/content/browser/renderer_host/render_widget_host_view.h#newcode345 content/browser/renderer_host/render_widget_host_view.h:345: RenderWidgetHostView() : ...
9 years, 3 months ago (2011-09-20 05:02:41 UTC) #8
commit-bot: I haz the power
9 years, 3 months ago (2011-09-22 03:36:39 UTC) #9
Change committed as 102234

Powered by Google App Engine
This is Rietveld 408576698