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

Issue 15002007: Delegate root layer scroll offset to android_webview. (Closed)

Created:
7 years, 7 months ago by mkosiba (inactive)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, android-webview-reviews_chromium.org, jdduke (slow)
Visibility:
Public.

Description

Delegate root layer scroll offset to android_webview. This connects the LayerScrollOffsetDeleate to the android_webview layer via the SynchronousCompositor. BUG=b/6029133 TESTS=None R=joth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205591

Patch Set 1 #

Total comments: 9

Patch Set 2 : rebase #

Total comments: 12

Patch Set 3 : register the handler in the InputHandlerManager #

Patch Set 4 : remove stale file #

Patch Set 5 : rebase on top of crrev.com/15875009 #

Total comments: 7

Patch Set 6 : #

Total comments: 1

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : remove spurious edits #

Total comments: 8

Patch Set 10 : rebase on top of Jared's CL #

Total comments: 6

Patch Set 11 : joth@'s feedback #

Patch Set 12 : rebase #

Total comments: 2

Patch Set 13 : remove use of WeakPtr #

Patch Set 14 : rebase #

Patch Set 15 : fix unittest compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -11 lines) Patch
M android_webview/browser/in_process_view_renderer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M android_webview/browser/in_process_view_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +36 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_input_event_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_input_event_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -0 lines 0 comments Download
M content/public/browser/android/synchronous_compositor.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/android/synchronous_compositor_client.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/gpu/input_event_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/input_event_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/input_event_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/input_handler_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/input_handler_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 39 (0 generated)
mkosiba (inactive)
PTAL
7 years, 7 months ago (2013-05-16 17:33:08 UTC) #1
joth
I only looked at the structure of the changes, which generally LG 2 me. I ...
7 years, 7 months ago (2013-05-16 18:21:42 UTC) #2
mkosiba (inactive)
@James - I rebased this CL on top of your https://codereview.chromium.org/13844021/. I'm not entirely sure ...
7 years, 7 months ago (2013-05-21 17:45:49 UTC) #3
jdduke (slow)
On 2013/05/21 17:45:49, mkosiba wrote: > @James - I rebased this CL on top of ...
7 years, 7 months ago (2013-05-21 22:56:37 UTC) #4
joth
On 21 May 2013 15:56, <jdduke@chromium.org> wrote: > On 2013/05/21 17:45:49, mkosiba wrote: > >> ...
7 years, 7 months ago (2013-05-22 00:04:46 UTC) #5
jamesr
On 2013/05/22 00:04:46, joth wrote: > On 21 May 2013 15:56, <mailto:jdduke@chromium.org> wrote: > > ...
7 years, 7 months ago (2013-05-22 01:01:03 UTC) #6
jamesr
https://codereview.chromium.org/15002007/diff/9001/cc/input/layer_scroll_offset_delegate.h File cc/input/layer_scroll_offset_delegate.h (right): https://codereview.chromium.org/15002007/diff/9001/cc/input/layer_scroll_offset_delegate.h#newcode11 cc/input/layer_scroll_offset_delegate.h:11: class Vector2dF; the functions here accept/return a gfx::Vector2dF by ...
7 years, 7 months ago (2013-05-22 01:28:13 UTC) #7
jdduke (slow)
I wonder if we can get at this by slightly abstracting InputHandlerManager. As it stands, ...
7 years, 7 months ago (2013-05-22 15:18:14 UTC) #8
jdduke (slow)
On 2013/05/22 15:18:14, jdduke wrote: > I wonder if we can get at this by ...
7 years, 7 months ago (2013-05-22 15:26:11 UTC) #9
mkosiba (inactive)
On 2013/05/22 15:18:14, jdduke wrote: > I wonder if we can get at this by ...
7 years, 7 months ago (2013-05-22 15:33:15 UTC) #10
mkosiba (inactive)
https://codereview.chromium.org/15002007/diff/9001/cc/input/layer_scroll_offset_delegate.h File cc/input/layer_scroll_offset_delegate.h (right): https://codereview.chromium.org/15002007/diff/9001/cc/input/layer_scroll_offset_delegate.h#newcode11 cc/input/layer_scroll_offset_delegate.h:11: class Vector2dF; On 2013/05/22 01:28:13, jamesr wrote: > the ...
7 years, 7 months ago (2013-05-22 17:26:17 UTC) #11
joth
On 22 May 2013 08:33, <mkosiba@chromium.org> wrote: > On 2013/05/22 15:18:14, jdduke wrote: > >> ...
7 years, 7 months ago (2013-05-22 17:33:13 UTC) #12
mkosiba (inactive)
@joth, @jdduke - what are your thoughts on this https://codereview.chromium.org/15002007/diff/30001/content/renderer/android/synchronous_compositor_impl.cc File content/renderer/android/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/15002007/diff/30001/content/renderer/android/synchronous_compositor_impl.cc#newcode77 content/renderer/android/synchronous_compositor_impl.cc:77: ...
7 years, 6 months ago (2013-05-28 17:29:50 UTC) #13
joth
https://codereview.chromium.org/15002007/diff/1/content/public/renderer/android/synchronous_compositor.h File content/public/renderer/android/synchronous_compositor.h (right): https://codereview.chromium.org/15002007/diff/1/content/public/renderer/android/synchronous_compositor.h#newcode6 content/public/renderer/android/synchronous_compositor.h:6: #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_ you fixed the wrong line here :) ...
7 years, 6 months ago (2013-05-28 17:36:24 UTC) #14
joth
https://codereview.chromium.org/15002007/diff/30001/content/renderer/android/synchronous_compositor_impl.h File content/renderer/android/synchronous_compositor_impl.h (right): https://codereview.chromium.org/15002007/diff/30001/content/renderer/android/synchronous_compositor_impl.h#newcode50 content/renderer/android/synchronous_compositor_impl.h:50: // LayerScrollOffsetDelegate I don't see LayerScrollOffsetDelegate in the class ...
7 years, 6 months ago (2013-05-29 00:46:25 UTC) #15
mkosiba (inactive)
https://codereview.chromium.org/15002007/diff/1/content/public/renderer/android/synchronous_compositor.h File content/public/renderer/android/synchronous_compositor.h (right): https://codereview.chromium.org/15002007/diff/1/content/public/renderer/android/synchronous_compositor.h#newcode6 content/public/renderer/android/synchronous_compositor.h:6: #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_ On 2013/05/28 17:36:24, joth wrote: > you ...
7 years, 6 months ago (2013-05-29 13:18:23 UTC) #16
mkosiba (inactive)
@joth - the InputHandlerManager hookup that I'm now able to do in the SynchronousCompositorImpl is ...
7 years, 6 months ago (2013-05-31 17:01:29 UTC) #17
joth
https://codereview.chromium.org/15002007/diff/53001/content/browser/android/in_process/DEPS File content/browser/android/in_process/DEPS (right): https://codereview.chromium.org/15002007/diff/53001/content/browser/android/in_process/DEPS#newcode4 content/browser/android/in_process/DEPS:4: "+content/renderer", jared probably needs this too, so IMHO we ...
7 years, 6 months ago (2013-05-31 18:46:05 UTC) #18
joth
+jdduke has picture of how InputHandlerManager will be evolving in future https://codereview.chromium.org/15002007/diff/53001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): ...
7 years, 6 months ago (2013-06-01 02:11:34 UTC) #19
mkosiba (inactive)
ok, since Jared's CL is landing I guess we can start reviewing this one now? ...
7 years, 6 months ago (2013-06-06 17:55:10 UTC) #20
joth
the structure of this works fine for me. Cheers https://codereview.chromium.org/15002007/diff/53001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/15002007/diff/53001/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode37 content/browser/android/in_process/synchronous_compositor_impl.cc:37: ...
7 years, 6 months ago (2013-06-06 20:19:31 UTC) #21
mkosiba (inactive)
https://codereview.chromium.org/15002007/diff/61001/android_webview/browser/in_process_view_renderer.h File android_webview/browser/in_process_view_renderer.h (right): https://codereview.chromium.org/15002007/diff/61001/android_webview/browser/in_process_view_renderer.h#newcode97 android_webview/browser/in_process_view_renderer.h:97: gfx::Vector2dF root_layer_scroll_offset_; On 2013/06/06 20:19:32, joth wrote: > I'm ...
7 years, 6 months ago (2013-06-07 16:18:27 UTC) #22
joth
On 7 June 2013 09:18, <mkosiba@chromium.org> wrote: > > https://codereview.chromium.**org/15002007/diff/61001/** > android_webview/browser/in_**process_view_renderer.h<https://codereview.chromium.org/15002007/diff/61001/android_webview/browser/in_process_view_renderer.h> > File android_webview/browser/in_**process_view_renderer.h ...
7 years, 6 months ago (2013-06-07 18:20:57 UTC) #23
mkosiba (inactive)
On 2013/06/07 18:20:57, joth wrote: > On 7 June 2013 09:18, <mailto:mkosiba@chromium.org> wrote: > > ...
7 years, 6 months ago (2013-06-07 22:15:08 UTC) #24
joth
quick answers - > Sooo.. big question is - when does the functor callback run? ...
7 years, 6 months ago (2013-06-08 00:12:13 UTC) #25
joth
I moved my further discussion on the java synchronization over to the java hookup patch ...
7 years, 6 months ago (2013-06-08 00:21:55 UTC) #26
mkosiba (inactive)
James, Joth likes this, what say you?
7 years, 6 months ago (2013-06-10 17:39:22 UTC) #27
jamesr
The diff's broken for me - all I see is "old chunk mismatch". Try uploading ...
7 years, 6 months ago (2013-06-10 17:48:23 UTC) #28
mkosiba (inactive)
On 2013/06/10 17:48:23, jamesr wrote: > The diff's broken for me - all I see ...
7 years, 6 months ago (2013-06-10 17:50:47 UTC) #29
jamesr
https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc File content/browser/android/in_process/synchronous_input_event_filter.cc (right): https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc#newcode55 content/browser/android/in_process/synchronous_input_event_filter.cc:55: ->SetInputHandler(base::WeakPtr<cc::InputHandler>()); if you have an explicit shutdown path, why ...
7 years, 6 months ago (2013-06-10 21:19:44 UTC) #30
mkosiba (inactive)
https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc File content/browser/android/in_process/synchronous_input_event_filter.cc (right): https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc#newcode55 content/browser/android/in_process/synchronous_input_event_filter.cc:55: ->SetInputHandler(base::WeakPtr<cc::InputHandler>()); On 2013/06/10 21:19:44, jamesr wrote: > if you ...
7 years, 6 months ago (2013-06-10 21:38:32 UTC) #31
jamesr
On 2013/06/10 21:38:32, mkosiba wrote: > https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc > File content/browser/android/in_process/synchronous_input_event_filter.cc > (right): > > https://codereview.chromium.org/15002007/diff/97001/content/browser/android/in_process/synchronous_input_event_filter.cc#newcode55 ...
7 years, 6 months ago (2013-06-10 21:41:13 UTC) #32
mkosiba (inactive)
I removed the use of WeakPtr in DidAddInputHandler. PTAL.
7 years, 6 months ago (2013-06-10 21:50:52 UTC) #33
mkosiba (inactive)
also, would the person who marked this review as private please stand up? If not ...
7 years, 6 months ago (2013-06-10 21:51:59 UTC) #34
jamesr
lgtm
7 years, 6 months ago (2013-06-10 21:54:22 UTC) #35
mkosiba (inactive)
+bulach for content/public/browser/android rubber stamp.
7 years, 6 months ago (2013-06-11 10:11:57 UTC) #36
bulach
lgtm, thanks!
7 years, 6 months ago (2013-06-11 12:25:57 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/15002007/114001
7 years, 6 months ago (2013-06-11 12:40:53 UTC) #38
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 18:22:15 UTC) #39
Message was sent while issue was closed.
Change committed as 205591

Powered by Google App Engine
This is Rietveld 408576698