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

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)

Created:
4 years, 4 months ago by nyquist
Modified:
4 years, 3 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add BlimpView to a Chrome tab when Blimp is enabled. This CL creates a BlimpView that is owned by the native BlimpContentsViewAndroid. It is created whenever the BlimpContentsViewAndroid is created, which is done when BlimpContentsImpl is created. The BlimpView needs access to the current Android Context, which is now passed through the call to CreateBlimpContents() as a NativeWindow which on Android is a WindowAndroid. When a BlimpContents is available and Blimp is enabled, this also hooks up the BlimpView to TabContentViewParent. The BlimpView is with this patch attached to the view hierarchy, and sends onSizeChanged events to the BlimpContentsImpl. The touch events are piped through to the BlimpCompositorManager. The old BlimpView in //blimp/client/app was colliding with the new, so it has been moved in to the namespace blimp::client:app. BUG=608759 Committed: https://crrev.com/516883acd2ca500fb7174d105124d356878ddccb Cr-Commit-Position: refs/heads/master@{#415760}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased on top of origin/master #

Patch Set 3 : Magic now happens #

Total comments: 16

Patch Set 4 : Addressed all comments #

Patch Set 5 : Now owned by BlimpContentsViewAndroid and also implemented touch and sizing #

Total comments: 10

Patch Set 6 : Addressed nits from dtrainor #

Patch Set 7 : Rebased on top of origin/master for good measure. #

Patch Set 8 : Fix Android unit tests by using ui::WindowAndroid #

Patch Set 9 : Merged in origin/master #

Patch Set 10 : Addressed offline comments and build issue #

Total comments: 2

Patch Set 11 : addressed nit, renamed CreateForTesting and piped through touch handling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+637 lines, -92 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/blimp_app_jni_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/app/android/blimp_view.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M blimp/client/app/android/blimp_view.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -1 line 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/BlimpView.java View 1 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M blimp/client/core/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
A + blimp/client/core/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -3 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -1 line 0 comments Download
M blimp/client/core/contents/BUILD.gn View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -0 lines 0 comments Download
M blimp/client/core/contents/android/blimp_contents_impl_android.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M blimp/client/core/contents/android/blimp_contents_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A blimp/client/core/contents/android/blimp_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +86 lines, -0 lines 0 comments Download
A blimp/client/core/contents/android/blimp_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +101 lines, -0 lines 0 comments Download
M blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -5 lines 0 comments Download
A blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpView.java View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +29 lines, -7 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +31 lines, -9 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +33 lines, -11 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_view_android.h View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -4 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_view_android.cc View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -8 lines 0 comments Download
M blimp/client/core/dummy_blimp_client_context.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/core/dummy_blimp_client_context.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/public/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContext.java View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpContents.java View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M blimp/client/public/blimp_client_context.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M blimp/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/test/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M blimp/test/run_all_unittests.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabContentViewParent.java View 1 2 3 4 5 1 chunk +15 lines, -8 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M ui/android/resources/resource_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/android/window_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/android/window_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 49 (33 generated)
nyquist
dtrainor: PTAL
4 years, 4 months ago (2016-08-24 23:38:21 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2270323004/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2270323004/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode65 blimp/client/core/android/blimp_client_context_impl_android.cc:65: BlimpClientContextImplAndroid::CreateBlimpContents() { Have this take a ui::NativeWindow? Then you ...
4 years, 3 months ago (2016-08-26 19:39:46 UTC) #7
nyquist
dtrainor: PTAL https://codereview.chromium.org/2270323004/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2270323004/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode65 blimp/client/core/android/blimp_client_context_impl_android.cc:65: BlimpClientContextImplAndroid::CreateBlimpContents() { On 2016/08/26 19:39:46, David Trainor ...
4 years, 3 months ago (2016-08-27 01:50:42 UTC) #8
David Trainor- moved to gerrit
some creation flow questions, but looking good otherwise! https://codereview.chromium.org/2270323004/diff/40001/blimp/client/core/DEPS File blimp/client/core/DEPS (right): https://codereview.chromium.org/2270323004/diff/40001/blimp/client/core/DEPS#newcode2 blimp/client/core/DEPS:2: "+ui/android", ...
4 years, 3 months ago (2016-08-29 05:29:34 UTC) #14
nyquist
dtrainor: PTAL https://codereview.chromium.org/2270323004/diff/40001/blimp/client/core/DEPS File blimp/client/core/DEPS (right): https://codereview.chromium.org/2270323004/diff/40001/blimp/client/core/DEPS#newcode2 blimp/client/core/DEPS:2: "+ui/android", On 2016/08/29 05:29:33, David Trainor wrote: ...
4 years, 3 months ago (2016-08-29 19:09:20 UTC) #15
nyquist
dtrainor: PTAL based on offline discussions
4 years, 3 months ago (2016-08-30 20:21:54 UTC) #20
David Trainor- moved to gerrit
lgtm % nits thanks! https://codereview.chromium.org/2270323004/diff/80001/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2270323004/diff/80001/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode72 blimp/client/core/android/blimp_client_context_impl_android.cc:72: BlimpClientContextImpl::CreateBlimpContents(window_android); Remove BlimpClientContextImpl:: https://codereview.chromium.org/2270323004/diff/80001/blimp/client/core/contents/android/blimp_view.h File ...
4 years, 3 months ago (2016-08-30 21:14:06 UTC) #22
nyquist
https://codereview.chromium.org/2270323004/diff/80001/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2270323004/diff/80001/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode72 blimp/client/core/android/blimp_client_context_impl_android.cc:72: BlimpClientContextImpl::CreateBlimpContents(window_android); On 2016/08/30 21:14:06, David Trainor wrote: > Remove ...
4 years, 3 months ago (2016-08-30 21:50:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2270323004/120001
4 years, 3 months ago (2016-08-30 22:20:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/133303)
4 years, 3 months ago (2016-08-30 23:53:00 UTC) #28
nyquist
tedchoc: PTAL //ui/android
4 years, 3 months ago (2016-08-31 17:40:12 UTC) #36
Ted C
ui - lgtm https://codereview.chromium.org/2270323004/diff/180001/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java File ui/android/java/src/org/chromium/ui/base/WindowAndroid.java (right): https://codereview.chromium.org/2270323004/diff/180001/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java#newcode511 ui/android/java/src/org/chromium/ui/base/WindowAndroid.java:511: mNativeWindowAndroid = 0; since this gets ...
4 years, 3 months ago (2016-08-31 19:28:05 UTC) #41
nyquist
All done! https://codereview.chromium.org/2270323004/diff/180001/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java File ui/android/java/src/org/chromium/ui/base/WindowAndroid.java (right): https://codereview.chromium.org/2270323004/diff/180001/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java#newcode511 ui/android/java/src/org/chromium/ui/base/WindowAndroid.java:511: mNativeWindowAndroid = 0; On 2016/08/31 19:28:05, Ted ...
4 years, 3 months ago (2016-08-31 20:06:11 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2270323004/200001
4 years, 3 months ago (2016-08-31 20:06:44 UTC) #46
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-08-31 21:28:30 UTC) #47
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 21:31:49 UTC) #49
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/516883acd2ca500fb7174d105124d356878ddccb
Cr-Commit-Position: refs/heads/master@{#415760}

Powered by Google App Engine
This is Rietveld 408576698