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

Issue 1109993002: Adds support for mojo apps to live in their own directory (Closed)

Created:
5 years, 8 months ago by sky
Modified:
5 years, 7 months ago
CC:
chromium-reviews, 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:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds support for mojo apps to live in their own directory I added the new gn target mandoline_native_application that creates the directory and changed html_viewer to use it. URLResource tries to find a directory, if it exists the directory is preferred over the raw name. If the directory doesn't exist, than use foo.mojo. R=ben@chromium.org Committed: https://crrev.com/d7a009a4ffa9b580e7f84f3cadf8146753dc3ad2 Cr-Commit-Position: refs/heads/master@{#327278}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : rename #

Total comments: 1

Patch Set 4 : mojo #

Patch Set 5 : copy_mojo_application_resources #

Patch Set 6 : merge to trunk and move filename_util to own dir #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -154 lines) Patch
M components/html_viewer/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
A mojo/mojo_application_package.gni View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M mojo/runner/context.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
D mojo/runner/filename_util.h View 1 2 3 4 5 1 chunk +0 lines, -28 lines 0 comments Download
D mojo/runner/filename_util.cc View 1 2 3 4 5 1 chunk +0 lines, -72 lines 0 comments Download
M mojo/runner/native_runner_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/runner/shell_test_base.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/runner/shell_test_base_android.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/runner/url_resolver.cc View 1 2 3 4 5 3 chunks +16 lines, -9 lines 0 comments Download
M mojo/runner/url_resolver_unittest.cc View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M mojo/shell/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/local_fetcher.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M mojo/shell/local_fetcher.cc View 1 2 3 4 5 2 chunks +4 lines, -17 lines 0 comments Download
A + mojo/util/BUILD.gn View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
A + mojo/util/filename_util.h View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
A + mojo/util/filename_util.cc View 1 2 3 4 5 2 chunks +19 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
sky
I'll wait until you land your patch before trying to land this.
5 years, 8 months ago (2015-04-27 21:04:39 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/1109993002/diff/20001/mandoline/mandoline_application.gni File mandoline/mandoline_application.gni (right): https://codereview.chromium.org/1109993002/diff/20001/mandoline/mandoline_application.gni#newcode12 mandoline/mandoline_application.gni:12: template("mandoline_native_application") { Can we put this in mojo and ...
5 years, 7 months ago (2015-04-27 21:30:03 UTC) #2
sky
https://codereview.chromium.org/1109993002/diff/20001/mandoline/mandoline_application.gni File mandoline/mandoline_application.gni (right): https://codereview.chromium.org/1109993002/diff/20001/mandoline/mandoline_application.gni#newcode12 mandoline/mandoline_application.gni:12: template("mandoline_native_application") { On 2015/04/27 21:30:03, Ben Goodger (Google) wrote: ...
5 years, 7 months ago (2015-04-27 21:35:33 UTC) #3
Ben Goodger (Google)
https://codereview.chromium.org/1109993002/diff/40001/mojo/mojo_application_package.gni File mojo/mojo_application_package.gni (right): https://codereview.chromium.org/1109993002/diff/40001/mojo/mojo_application_package.gni#newcode30 mojo/mojo_application_package.gni:30: mojo_deps += [ ":copy_mandoline_resources" ] copy_mojo_application_resources??
5 years, 7 months ago (2015-04-27 21:52:49 UTC) #4
sky
5 years, 7 months ago (2015-04-27 21:55:04 UTC) #5
Ben Goodger (Google)
lgtm
5 years, 7 months ago (2015-04-27 21:57:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109993002/100001
5 years, 7 months ago (2015-04-28 13:11:24 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-04-28 13:15:19 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d7a009a4ffa9b580e7f84f3cadf8146753dc3ad2 Cr-Commit-Position: refs/heads/master@{#327278}
5 years, 7 months ago (2015-04-28 13:46:22 UTC) #11
qsr
Any reason this is design in the shell itself instead of using a content handler. ...
5 years, 7 months ago (2015-04-30 09:20:55 UTC) #12
sky
5 years, 7 months ago (2015-04-30 17:49:41 UTC) #13
Message was sent while issue was closed.
This would mean you have to connect to mojo:foo/manifest.mojo, which
isn't particularly satisfying. I suppose I could look for a
manifest.mojo and for you, but then I may as well do the logic I'm
doing now. I'm not sure a file url would work, it would have to be
relative. Additionally having the content handler have to run the
application itself isn't particularly satisfying either.

I agree that it would be possible to implement this as a content
handler, it just doesn't feel particularly satisfying. Adding first
class support for apps to have resources feels more natural.

  -Scott

On Thu, Apr 30, 2015 at 2:20 AM,  <qsr@chromium.org> wrote:
> Any reason this is design in the shell itself instead of using a content
> handler. You could have the following structure:
>
> dir.mojo/manifest.mojo
> dir.mojo/dir.mojo
> dir.mojo/resource
>
> At its bare minimum, manifest.mojo will just have a single line:
> #!mojo:dir_content_handler.mojo
>
> And content_handler.mojo will be a content handler that expect the response
> it
> receive to have a file:/// url, and will then get access to the directory to
> run
> the application.
>
> https://codereview.chromium.org/1109993002/

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698