|
Add GetScrollOffset function to PPB_View
This adds a function to PPB_View which allows plugins to know the scroll offset
of the page when they are in view. This is useful for OOP PDF which uses the
scroll offset of the window it is contained in to determine the document's
scroll location. A web page can send scroll location via postMessage but
this is slow. Sending the offset directly via view messages is much faster
and seems reasonable.
We don't send the scroll offset in the cases where the plugin is off screen
to avoid any more additional IPC traffic than what currently exists.
BUG= 303491
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278236
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+178 lines, -17 lines) |
Patch |
 |
M |
chrome/test/ppapi/ppapi_browsertest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/api/ppb_view.idl
|
View
|
1
2
3
|
5 chunks |
+22 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/c/ppb_view.h
|
View
|
1
2
3
|
5 chunks |
+30 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/cpp/view.h
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/cpp/view.cc
|
View
|
|
7 chunks |
+41 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_messages.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppb_view_shared.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppb_view_shared.cc
|
View
|
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_view.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_view.cc
|
View
|
1
2
3
|
2 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/interfaces_ppb_public_stable.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_view_api.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_view_thunk.cc
|
View
|
|
4 chunks |
+25 lines, -1 line |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|