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

Issue 51373002: NativeViewport (Closed)

Created:
7 years, 1 month ago by Ben Goodger (Google)
Modified:
7 years, 1 month ago
Reviewers:
abarth-chromium
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Adds the skeleton of a NativeViewport concept. This is a platform-specific View (output surface and event sink). We listen for events and other disposition changes and forward them to app code. In this case I just do something ad-hoc (stringify some event metadata and post to our existing sample app). Once we have bindings, we can surface a better API here. I would also like for the app to request the NativeViewportService from the Service Service, and get a separate pipe for that, rather than reusing the one that is passed through MojoMain (which I think is supposed to only be for surfacing the ServiceService). Anyway WDYT? If we agree on this I can figure out how to wrap the org.chromium.mojo_shell_apk.MojoView in a NativeViewport. BUG= R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232210

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 7

Patch Set 4 : cleanup #

Patch Set 5 : rebase #

Patch Set 6 : add files #

Patch Set 7 : android build, windows ownership #

Patch Set 8 : . #

Patch Set 9 : stubs #

Patch Set 10 : more files #

Patch Set 11 : override #

Patch Set 12 : . #

Patch Set 13 : nl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -18 lines) Patch
M mojo/examples/sample_app/sample_app.cc View 1 2 3 4 5 6 2 chunks +11 lines, -8 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -2 lines 0 comments Download
A + mojo/services/DEPS View 1 chunk +0 lines, -4 lines 0 comments Download
A + mojo/services/native_viewport/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +45 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +39 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_controller.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_controller.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_stub.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +38 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_win.cc View 1 2 3 4 5 6 1 chunk +80 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/native_viewport_x11.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
M mojo/shell/app_container.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M mojo/shell/app_container.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ben Goodger (Google)
https://codereview.chromium.org/51373002/diff/50001/mojo/examples/sample_app/sample_app.cc File mojo/examples/sample_app/sample_app.cc (right): https://codereview.chromium.org/51373002/diff/50001/mojo/examples/sample_app/sample_app.cc#newcode8 mojo/examples/sample_app/sample_app.cc:8: #include "mojo/public/system/macros.h" I noticed that this app need not ...
7 years, 1 month ago (2013-10-29 21:34:41 UTC) #1
abarth-chromium
https://codereview.chromium.org/51373002/diff/50001/mojo/examples/sample_app/sample_app.cc File mojo/examples/sample_app/sample_app.cc (right): https://codereview.chromium.org/51373002/diff/50001/mojo/examples/sample_app/sample_app.cc#newcode56 mojo/examples/sample_app/sample_app.cc:56: running_ = true; Do we want to set running_ ...
7 years, 1 month ago (2013-10-29 21:48:44 UTC) #2
abarth-chromium
> Anyway WDYT? If we agree on this I can figure out how to wrap ...
7 years, 1 month ago (2013-10-29 21:51:41 UTC) #3
Ben Goodger (Google)
On 2013/10/29 21:48:44, abarth wrote: > https://codereview.chromium.org/51373002/diff/50001/mojo/examples/sample_app/sample_app.cc#newcode56 > mojo/examples/sample_app/sample_app.cc:56: running_ = true; > Do we ...
7 years, 1 month ago (2013-10-29 22:33:13 UTC) #4
Ben Goodger (Google)
On 2013/10/29 21:51:41, abarth wrote: > > Anyway WDYT? If we agree on this I ...
7 years, 1 month ago (2013-10-29 22:35:52 UTC) #5
abarth-chromium
LGTM Like a lot of the code we've written so far, we're going to need ...
7 years, 1 month ago (2013-10-30 06:34:44 UTC) #6
Ben Goodger (Google)
OK, I cleaned up the windows ownership story a bit more and fixed the android ...
7 years, 1 month ago (2013-10-30 23:03:07 UTC) #7
Ben Goodger (Google)
Adam, still OK with this now? Sorry for not being clear earlier, it was a ...
7 years, 1 month ago (2013-10-31 16:39:22 UTC) #8
abarth-chromium
Yes, LGTM
7 years, 1 month ago (2013-10-31 16:46:23 UTC) #9
Ben Goodger (Google)
7 years, 1 month ago (2013-10-31 21:06:34 UTC) #10
Message was sent while issue was closed.
Committed patchset #13 manually as r232210 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698