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

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed)

Created:
5 years, 4 months ago by etiennej
Modified:
5 years, 4 months ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Allow native_viewport to create new native windows on demand on Android. With this change, each time a new native viewport is initialized, an intent is sent to create a new task for the shell. Then, once the new task is ready, the requesting native viewport is notified of the availability of the new native surface so it can attach to it. There is still no specific support for the keyboard. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/fbd9af0eb56892790b377a2724dce586b13676b9

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Refactor #

Total comments: 10

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -90 lines) Patch
M services/native_viewport/BUILD.gn View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java View 1 2 4 chunks +30 lines, -8 lines 0 comments Download
M services/native_viewport/main.cc View 1 4 chunks +5 lines, -3 lines 0 comments Download
M services/native_viewport/native_viewport_impl.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M services/native_viewport/native_viewport_impl.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
A services/native_viewport/native_viewport_internal.mojom View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M services/native_viewport/platform_viewport.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M services/native_viewport/platform_viewport_android.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M services/native_viewport/platform_viewport_android.cc View 1 2 3 4 5 chunks +31 lines, -11 lines 0 comments Download
M services/native_viewport/platform_viewport_stub.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M services/native_viewport/platform_viewport_x11.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M shell/BUILD.gn View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M shell/android/apk/AndroidManifest.xml.jinja2 View 2 chunks +7 lines, -4 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo/shell/MojoShellActivity.java View 1 2 3 4 chunks +8 lines, -45 lines 0 comments Download
A shell/android/apk/src/org/chromium/mojo/shell/NativeViewportSupportApplicationDelegate.java View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java View 1 chunk +0 lines, -3 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo/shell/SharingActivity.java View 1 chunk +0 lines, -3 lines 0 comments Download
A shell/android/apk/src/org/chromium/mojo/shell/ViewportActivity.java View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M shell/android/native_viewport_application_loader.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
etiennej
5 years, 4 months ago (2015-08-06 13:18:49 UTC) #3
qsr
https://codereview.chromium.org/1280613003/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom File mojo/services/native_viewport/public/interfaces/native_viewport.mojom (right): https://codereview.chromium.org/1280613003/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom#newcode54 mojo/services/native_viewport/public/interfaces/native_viewport.mojom:54: interface NativeViewportShellService { Should this be in another place. ...
5 years, 4 months ago (2015-08-06 14:13:21 UTC) #4
etiennej
https://codereview.chromium.org/1280613003/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom File mojo/services/native_viewport/public/interfaces/native_viewport.mojom (right): https://codereview.chromium.org/1280613003/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom#newcode54 mojo/services/native_viewport/public/interfaces/native_viewport.mojom:54: interface NativeViewportShellService { On 2015/08/06 14:13:20, qsr wrote: > ...
5 years, 4 months ago (2015-08-07 10:16:37 UTC) #5
qsr
https://codereview.chromium.org/1280613003/diff/40001/services/native_viewport/platform_viewport_android.cc File services/native_viewport/platform_viewport_android.cc (right): https://codereview.chromium.org/1280613003/diff/40001/services/native_viewport/platform_viewport_android.cc#newcode85 services/native_viewport/platform_viewport_android.cc:85: java_platform_viewport_request_ = Is this name correct? This is not ...
5 years, 4 months ago (2015-08-07 11:18:01 UTC) #6
etiennej
https://codereview.chromium.org/1280613003/diff/40001/services/native_viewport/platform_viewport_android.cc File services/native_viewport/platform_viewport_android.cc (right): https://codereview.chromium.org/1280613003/diff/40001/services/native_viewport/platform_viewport_android.cc#newcode85 services/native_viewport/platform_viewport_android.cc:85: java_platform_viewport_request_ = On 2015/08/07 11:18:01, qsr wrote: > Is ...
5 years, 4 months ago (2015-08-07 12:22:11 UTC) #7
etiennej
I added the todos, btw.
5 years, 4 months ago (2015-08-07 13:50:33 UTC) #8
qsr
LGTM with nits. https://codereview.chromium.org/1280613003/diff/60001/services/native_viewport/platform_viewport_android.cc File services/native_viewport/platform_viewport_android.cc (right): https://codereview.chromium.org/1280613003/diff/60001/services/native_viewport/platform_viewport_android.cc#newcode74 services/native_viewport/platform_viewport_android.cc:74: reinterpret_cast<jlong>(this)); reinterpret_cast should be to intptr_t, ...
5 years, 4 months ago (2015-08-07 14:09:39 UTC) #9
etiennej
https://codereview.chromium.org/1280613003/diff/60001/services/native_viewport/platform_viewport_android.cc File services/native_viewport/platform_viewport_android.cc (right): https://codereview.chromium.org/1280613003/diff/60001/services/native_viewport/platform_viewport_android.cc#newcode74 services/native_viewport/platform_viewport_android.cc:74: reinterpret_cast<jlong>(this)); On 2015/08/07 14:09:39, qsr wrote: > reinterpret_cast should ...
5 years, 4 months ago (2015-08-07 14:15:40 UTC) #10
etiennej
5 years, 4 months ago (2015-08-07 14:26:18 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
fbd9af0eb56892790b377a2724dce586b13676b9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698