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

Issue 9814015: Add new MouseCursor interface for setting the mouse cursor. (Closed)

Created:
8 years, 9 months ago by brettw
Modified:
8 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Add new MouseCursor interface for setting the mouse cursor. Remove most of the old cursor control interface. This keeps backwards compat for CursorControl.SetCursor (which just redirects to the new function) to kepe existing users running. None of the other functions on cursor control were implemented, so I removed all the proxying and stuff for them. BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131314

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 22

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1074 lines, -1119 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -11 lines 0 comments Download
A ppapi/api/ppb_mouse_cursor.idl View 1 2 3 4 5 6 7 1 chunk +106 lines, -0 lines 0 comments Download
A ppapi/c/ppb_mouse_cursor.h View 1 2 3 4 5 6 7 1 chunk +138 lines, -0 lines 0 comments Download
A ppapi/cpp/mouse_cursor.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
A ppapi/cpp/mouse_cursor.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download
M ppapi/examples/2d/paint_manager_example.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
A ppapi/examples/mouse_cursor/mouse_cursor.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
D ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_cursor_control_rpc_server.cc View 1 1 chunk +0 lines, -113 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_mouse_cursor_rpc_server.cc View 1 1 chunk +49 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/build.scons View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/nacl.scons View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -2 lines 0 comments Download
D ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_cursor_control.h View 1 1 chunk +0 lines, -26 lines 0 comments Download
D ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_cursor_control.cc View 1 1 chunk +0 lines, -138 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_cursor.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_cursor.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
D ppapi/native_client/src/shared/ppapi_proxy/ppb_cursor_control.srpc View 1 1 chunk +0 lines, -45 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/ppb_mouse_cursor.srpc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -91 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 1 2 3 4 5 6 7 4 chunks +18 lines, -78 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/run_srpcgen.py View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -37 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -32 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/ppb_dev/ppapi_ppb_dev.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -7 lines 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -7 lines 0 comments Download
M ppapi/native_client/tests/ppapi_tests/nacl.scons View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -20 lines 0 comments Download
D ppapi/proxy/ppb_cursor_control_proxy.h View 1 chunk +0 lines, -67 lines 0 comments Download
D ppapi/proxy/ppb_cursor_control_proxy.cc View 1 chunk +0 lines, -149 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 3 chunks +41 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_instance_shared.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_instance_shared.cc View 2 chunks +43 lines, -0 lines 0 comments Download
A ppapi/tests/test_mouse_cursor.h View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
A ppapi/tests/test_mouse_cursor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 chunk +1 line, -0 lines 0 comments Download
D ppapi/thunk/ppb_cursor_control_api.h View 1 chunk +0 lines, -34 lines 0 comments Download
M ppapi/thunk/ppb_cursor_control_thunk.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -19 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 2 chunks +7 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_mouse_cursor_thunk.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_mouse_lock_thunk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 2 chunks +4 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +94 lines, -94 lines 0 comments Download
D webkit/plugins/ppapi/ppb_cursor_control_impl.h View 1 chunk +0 lines, -49 lines 0 comments Download
D webkit/plugins/ppapi/ppb_cursor_control_impl.cc View 1 chunk +0 lines, -62 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brettw
8 years, 9 months ago (2012-03-26 04:49:10 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/9814015/diff/8061/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9814015/diff/8061/chrome/test/ui/ppapi_uitest.cc#newcode1029 chrome/test/ui/ppapi_uitest.cc:1029: TEST_PPAPI_IN_PROCESS(MouseCursor) you could separate your 3 tests out, though ...
8 years, 9 months ago (2012-03-26 17:43:16 UTC) #2
brettw
http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.idl File ppapi/api/ppb_mouse_cursor.idl (right): http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.idl#newcode102 ppapi/api/ppb_mouse_cursor.idl:102: PP_Bool SetCursor([in] PP_Instance instance, On 2012/03/26 17:43:17, dmichael wrote: ...
8 years, 9 months ago (2012-03-26 17:59:30 UTC) #3
brettw
Other comments should be addressed. PTAL http://codereview.chromium.org/9814015/diff/8061/ppapi/shared_impl/ppb_instance_shared.cc File ppapi/shared_impl/ppb_instance_shared.cc (right): http://codereview.chromium.org/9814015/diff/8061/ppapi/shared_impl/ppb_instance_shared.cc#newcode80 ppapi/shared_impl/ppb_instance_shared.cc:80: // cursor to ...
8 years, 9 months ago (2012-03-27 05:17:19 UTC) #4
dmichael (off chromium)
lgtm http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.idl File ppapi/api/ppb_mouse_cursor.idl (right): http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.idl#newcode102 ppapi/api/ppb_mouse_cursor.idl:102: PP_Bool SetCursor([in] PP_Instance instance, On 2012/03/26 17:59:30, brettw ...
8 years, 8 months ago (2012-03-27 15:48:44 UTC) #5
brettw
8 years, 8 months ago (2012-03-27 16:10:46 UTC) #6
http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.idl
File ppapi/api/ppb_mouse_cursor.idl (right):

http://codereview.chromium.org/9814015/diff/8061/ppapi/api/ppb_mouse_cursor.i...
ppapi/api/ppb_mouse_cursor.idl:102: PP_Bool SetCursor([in] PP_Instance instance,
It might be nice, but I don't think it's worth the effort to change for such a
minor improvement, the API is easy enough to use.

Powered by Google App Engine
This is Rietveld 408576698