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

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed)

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

Description

Change the DidChangeView update to take a new ViewChanged resource. This will allow us to be more flexible about adding data to view changed updates in the future. For now, I've incorporated fullscreen and tab foreground state into the view state. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116142

Patch Set 1 #

Patch Set 2 : new patch #

Total comments: 2

Patch Set 3 : New patch #

Total comments: 28

Patch Set 4 : NaCl works! #

Patch Set 5 : Review comments #

Total comments: 2

Patch Set 6 : Fix nacl #

Patch Set 7 : Add comment #

Patch Set 8 : nacl integration tests #

Patch Set 9 : Fix fullscreen #

Patch Set 10 : More nacl fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3548 lines, -2241 lines) Patch
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
A ppapi/api/ppb_view.idl View 1 1 chunk +139 lines, -0 lines 2 comments Download
M ppapi/api/ppp_instance.idl View 1 4 chunks +18 lines, -2 lines 1 comment Download
A ppapi/c/ppb_view.h View 1 1 chunk +154 lines, -0 lines 0 comments Download
M ppapi/c/ppp_instance.h View 1 1 chunk +189 lines, -206 lines 0 comments Download
M ppapi/cpp/instance.h View 1 2 chunks +18 lines, -3 lines 0 comments Download
M ppapi/cpp/instance.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/cpp/module.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
A ppapi/cpp/view.h View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
A ppapi/cpp/view.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M ppapi/example/example.cc View 1 2 7 chunks +22 lines, -27 lines 0 comments Download
M ppapi/examples/2d/graphics_2d_example.c View 1 2 3 4 5 6 7 4 chunks +16 lines, -9 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppp.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_instance.cc View 1 2 3 4 2 chunks +15 lines, -20 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/build.scons View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/nacl.scons View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h View 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.cc View 1 2 3 4 5 6 1 chunk +15 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc View 1 chunk +1 line, -13 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.h View 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc View 1 1 chunk +108 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_instance_rpc_server.cc View 1 2 3 4 3 chunks +25 lines, -15 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp View 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_instance.srpc View 1 chunk +2 lines, -5 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.h View 1 1 chunk +58 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_rpc_client.cc View 1 chunk +471 lines, -473 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_rpc_server.cc View 1 chunk +456 lines, -457 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h View 1 chunk +266 lines, -267 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/upcall.h View 1 chunk +44 lines, -44 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h View 1 chunk +295 lines, -296 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/view_data.h View 1 chunk +24 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/view_data.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 6 chunks +13 lines, -23 lines 0 comments Download
M ppapi/native_client/tests/earth/pepper_c.c View 1 2 3 4 5 6 7 6 chunks +12 lines, -8 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad_ppp_initialize_crash.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad_ppp_instance_didcreate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/ppp_instance/ppapi_ppp_instance.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -6 lines 0 comments Download
M ppapi/native_client/tests/ppapi_geturl/module.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 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 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/module_instance.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/test_interface.h View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 chunks +11 lines, -5 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 3 chunks +56 lines, -56 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 17 chunks +82 lines, -79 lines 0 comments Download
M ppapi/proxy/ppp_instance_proxy.h View 1 3 chunks +16 lines, -16 lines 0 comments Download
M ppapi/proxy/ppp_instance_proxy.cc View 1 2 3 4 7 chunks +86 lines, -56 lines 0 comments Download
A ppapi/shared_impl/ppb_view_shared.h View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppb_view_shared.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppp_instance_combined.h View 1 chunk +32 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppp_instance_combined.cc View 1 chunk +57 lines, -15 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_audio_api.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/thunk/ppb_fullscreen_thunk.cc View 2 chunks +5 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
A ppapi/thunk/ppb_view_api.h View 1 chunk +31 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_view_thunk.cc View 1 1 chunk +96 lines, -0 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A webkit/plugins/ppapi/gfx_conversion.h View 1 chunk +48 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 8 11 chunks +23 lines, -24 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 21 chunks +91 lines, -48 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_2d_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
dmichael (off chromium)
I've only looked at the example so far... http://codereview.chromium.org/8951014/diff/2001/ppapi/example/example.cc File ppapi/example/example.cc (right): http://codereview.chromium.org/8951014/diff/2001/ppapi/example/example.cc#newcode266 ppapi/example/example.cc:266: if ...
9 years ago (2011-12-16 04:14:31 UTC) #1
brettw
New snap up. http://codereview.chromium.org/8951014/diff/2001/ppapi/example/example.cc File ppapi/example/example.cc (right): http://codereview.chromium.org/8951014/diff/2001/ppapi/example/example.cc#newcode266 ppapi/example/example.cc:266: if (view.GetViewportRect().size() != current_view_.GetViewportRect().size()) It does ...
9 years ago (2011-12-19 22:53:40 UTC) #2
dmichael (off chromium)
Whew. Looks good overall, but there are some vestiges of the PPB_ViewChanged interface to get ...
9 years ago (2011-12-20 19:01:34 UTC) #3
dmichael (off chromium)
One more thing: Test(s) plz?
9 years ago (2011-12-20 19:41:57 UTC) #4
brettw
Since all the tests run when we send DidChangeView, the fact that it's getting sent ...
9 years ago (2011-12-20 20:49:46 UTC) #5
dmichael (off chromium)
On 2011/12/20 20:49:46, brettw wrote: > Since all the tests run when we send DidChangeView, ...
9 years ago (2011-12-21 02:24:31 UTC) #6
brettw
http://codereview.chromium.org/8951014/diff/6001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/8951014/diff/6001/chrome/browser/nacl_host/nacl_process_host.cc#newcode391 chrome/browser/nacl_host/nacl_process_host.cc:391: delete this; Sorry this shouldn't have been in this ...
9 years ago (2011-12-21 22:06:54 UTC) #7
brettw
I think I got all the comments except for the tests. http://codereview.chromium.org/8951014/diff/6001/ppapi/native_client/src/shared/ppapi_proxy/upcall_server.cc File ppapi/native_client/src/shared/ppapi_proxy/upcall_server.cc (right): ...
9 years ago (2011-12-21 23:55:28 UTC) #8
dmichael (off chromium)
lgtm http://codereview.chromium.org/8951014/diff/16001/ppapi/cpp/view.cc File ppapi/cpp/view.cc (right): http://codereview.chromium.org/8951014/diff/16001/ppapi/cpp/view.cc#newcode49 ppapi/cpp/view.cc:49: return true; missed one http://codereview.chromium.org/8951014/diff/16001/ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.cc File ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.cc (right): ...
9 years ago (2011-12-22 17:40:04 UTC) #9
darin (slow to review)
8 years, 10 months ago (2012-01-31 21:56:47 UTC) #10
http://codereview.chromium.org/8951014/diff/32001/ppapi/api/ppb_view.idl
File ppapi/api/ppb_view.idl (right):

http://codereview.chromium.org/8951014/diff/32001/ppapi/api/ppb_view.idl#newc...
ppapi/api/ppb_view.idl:17: * You can get a View object with the
<code>PPB_Instance.GetView()</code>
nit: there is no GetView() method

http://codereview.chromium.org/8951014/diff/32001/ppapi/api/ppb_view.idl#newc...
ppapi/api/ppb_view.idl:18: * function. Additionally, all
</code>PPB_ViewChanged</code> objects are also
nit: PPB_ViewChanged doesn't exist in this rev of the CL

http://codereview.chromium.org/8951014/diff/32001/ppapi/api/ppp_instance.idl
File ppapi/api/ppp_instance.idl (right):

http://codereview.chromium.org/8951014/diff/32001/ppapi/api/ppp_instance.idl#...
ppapi/api/ppp_instance.idl:173: [in] PP_Resource view_resource);
nit: view_resource -> view

Powered by Google App Engine
This is Rietveld 408576698