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

Issue 329033003: Add GetScrollOffset function to PPB_View (Closed)

Created:
6 years, 6 months ago by raymes
Modified:
6 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, jam, raymes+watch_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 4

Patch Set 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

Messages

Total messages: 18 (0 generated)
raymes
Hey, could you give me your thoughts as to whether this is reasonable? If it's ...
6 years, 6 months ago (2014-06-11 06:54:53 UTC) #1
dmichael (off chromium)
https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl File ppapi/api/ppb_view.idl (right): https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl#newcode16 ppapi/api/ppb_view.idl:16: M37 = 1.2 It might be best to use ...
6 years, 6 months ago (2014-06-11 20:24:15 UTC) #2
raymes
https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl File ppapi/api/ppb_view.idl (right): https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl#newcode16 ppapi/api/ppb_view.idl:16: M37 = 1.2 On 2014/06/11 20:24:14, dmichael wrote: > ...
6 years, 6 months ago (2014-06-12 01:06:15 UTC) #3
darin (slow to review)
Can you elaborate on what makes this method of communicating scroll offset so much faster ...
6 years, 6 months ago (2014-06-12 03:45:29 UTC) #4
raymes
> Can you elaborate on what makes this method of communicating scroll offset > so ...
6 years, 6 months ago (2014-06-12 04:47:46 UTC) #5
raymes
Friendly ping :) On Thu, Jun 12, 2014 at 2:47 PM, Raymes Khoury <raymes@chromium.org> wrote: ...
6 years, 6 months ago (2014-06-16 02:52:31 UTC) #6
dmichael (off chromium)
https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl File ppapi/api/ppb_view.idl (right): https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl#newcode200 ppapi/api/ppb_view.idl:200: * plugin. This value will only be valid if ...
6 years, 6 months ago (2014-06-16 22:31:56 UTC) #7
raymes
https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl File ppapi/api/ppb_view.idl (right): https://codereview.chromium.org/329033003/diff/20001/ppapi/api/ppb_view.idl#newcode200 ppapi/api/ppb_view.idl:200: * plugin. This value will only be valid if ...
6 years, 6 months ago (2014-06-17 00:43:00 UTC) #8
dmichael (off chromium)
lgtm
6 years, 6 months ago (2014-06-17 20:26:02 UTC) #9
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 6 months ago (2014-06-18 03:46:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/329033003/60001
6 years, 6 months ago (2014-06-18 03:50:10 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 10:08:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/74489)
6 years, 6 months ago (2014-06-18 10:08:55 UTC) #13
raymes
+tsepez for ppapi_messages
6 years, 6 months ago (2014-06-18 23:41:52 UTC) #14
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-06-19 00:53:58 UTC) #15
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 6 months ago (2014-06-19 01:35:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/329033003/60001
6 years, 6 months ago (2014-06-19 01:39:28 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 01:48:19 UTC) #18
Message was sent while issue was closed.
Change committed as 278236

Powered by Google App Engine
This is Rietveld 408576698