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

Issue 284113011: Repurpose views+content example into a generic multiprocess views runtime (Closed)

Created:
6 years, 7 months ago by tapted
Modified:
5 years, 11 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, mac-views-reviews_chromium.org
Visibility:
Public.

Description

Repurpose views+content example into a generic multiprocess views runtime This is to facilitate the addition of an app launcher example/demo app, separate from the browser, and to assist testing of the out-of-process compositor on mac. The change splits out from the current views_examples_with_content_exe target a new views_content_client target placed in ui/views_content_client. views_examples_with_content_exe is updated to use it. This will allow the app launcher to have its own example app, while reusing the logic to set up the multiprocess runtime environment for using views and content. Follow-up patches for the views_content_client runtime will: isolate aura dependencies, introduce the gpu_process UI compositor, and implement the runtime environment for mac. BUG=365977 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272476 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272902

Patch Set 1 : standalone views_demo_app.cc, example views_demo_app_mac.mm #

Patch Set 2 : Use views_examples_with_content, but in-process compositor is pretty unusable #

Patch Set 3 : app_list_demo.cc using example_main #

Patch Set 4 : take out app_list_demo for review, fix windows #

Patch Set 5 : use sandbox boilerplate for now #

Total comments: 1

Patch Set 6 : move files, lint deps, before renaming classes #

Patch Set 7 : rename classes and files as well. Similarity:35 #

Patch Set 8 : rebase for r272332 #

Total comments: 1

Patch Set 9 : fix derp #

Patch Set 10 : rebase for horrible copyright header change in revert CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -617 lines) Patch
M ui/views/examples/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
D ui/views/examples/content_client/DEPS View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
D ui/views/examples/content_client/examples_browser_main_parts.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -61 lines 0 comments Download
D ui/views/examples/content_client/examples_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -91 lines 0 comments Download
D ui/views/examples/content_client/examples_content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
D ui/views/examples/content_client/examples_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -38 lines 0 comments Download
D ui/views/examples/content_client/examples_main.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -32 lines 0 comments Download
D ui/views/examples/content_client/examples_main_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -40 lines 0 comments Download
D ui/views/examples/content_client/examples_main_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -72 lines 0 comments Download
M ui/views/examples/examples.gyp View 1 2 3 4 5 3 chunks +2 lines, -55 lines 0 comments Download
A ui/views/examples/examples_with_content_main_exe.cc View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A + ui/views_content_client/DEPS View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
A ui/views_content_client/README.chromium View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + ui/views_content_client/views_content_browser_client.h View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -14 lines 0 comments Download
A + ui/views_content_client/views_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -15 lines 0 comments Download
A ui/views_content_client/views_content_client.h View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A + ui/views_content_client/views_content_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -14 lines 0 comments Download
A ui/views_content_client/views_content_client.gyp View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -0 lines 0 comments Download
A ui/views_content_client/views_content_client_export.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A + ui/views_content_client/views_content_client_main_parts.h View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -61 lines 0 comments Download
A + ui/views_content_client/views_content_client_main_parts.cc View 1 2 3 4 5 6 7 8 9 6 chunks +20 lines, -22 lines 0 comments Download
A + ui/views_content_client/views_content_main_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -40 lines 0 comments Download
A + ui/views_content_client/views_content_main_delegate.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 39 (1 generated)
tapted
Hi Ben, PTAL. I started doing a separate thing for an app launcher example to ...
6 years, 7 months ago (2014-05-20 08:45:35 UTC) #1
Ben Goodger (Google)
What is the "app launcher example" app?
6 years, 7 months ago (2014-05-20 19:29:00 UTC) #2
tapted
On 2014/05/20 19:29:00, Ben Goodger (Google) wrote: > What is the "app launcher example" app? ...
6 years, 7 months ago (2014-05-20 22:21:05 UTC) #3
Ben Goodger (Google)
it makes me a little sad that this code depends on views/examples, which is supposed ...
6 years, 7 months ago (2014-05-20 22:57:49 UTC) #4
tapted
On 2014/05/20 22:57:49, Ben Goodger (Google) wrote: > it makes me a little sad that ...
6 years, 7 months ago (2014-05-20 23:32:52 UTC) #5
tapted
On 2014/05/20 22:57:49, Ben Goodger (Google) wrote: > perhaps we could create a common one ...
6 years, 7 months ago (2014-05-21 10:02:15 UTC) #6
Ben Goodger (Google)
lgtm - thanks for doing this! it's possible that ash_shell could end up using this ...
6 years, 7 months ago (2014-05-22 17:20:28 UTC) #7
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-23 00:17:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/400024
6 years, 7 months ago (2014-05-23 00:18:37 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 00:33:29 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 00:39:08 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69388) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/18279)
6 years, 7 months ago (2014-05-23 00:39:09 UTC) #12
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-23 01:44:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/470001
6 years, 7 months ago (2014-05-23 01:45:18 UTC) #14
commit-bot: I haz the power
Change committed as 272476
6 years, 7 months ago (2014-05-23 10:50:42 UTC) #15
alph
A revert of this CL has been created in https://codereview.chromium.org/288313012/ by alph@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-23 11:15:41 UTC) #16
tapted
https://codereview.chromium.org/284113011/diff/470001/ui/views_content_client/views_content_client.gyp File ui/views_content_client/views_content_client.gyp (right): https://codereview.chromium.org/284113011/diff/470001/ui/views_content_client/views_content_client.gyp#newcode41 ui/views_content_client/views_content_client.gyp:41: 'views_main_delegate.h', There was just a stray line here, which ...
6 years, 7 months ago (2014-05-26 03:27:15 UTC) #17
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-26 03:27:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/490001
6 years, 7 months ago (2014-05-26 03:28:11 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 03:56:34 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-26 03:59:57 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69715)
6 years, 7 months ago (2014-05-26 03:59:58 UTC) #22
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-26 04:21:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/530001
6 years, 7 months ago (2014-05-26 04:22:35 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 05:50:15 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-26 06:26:12 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/156909)
6 years, 7 months ago (2014-05-26 06:26:13 UTC) #27
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-26 07:46:21 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/530001
6 years, 7 months ago (2014-05-26 07:46:46 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 09:29:52 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-26 10:54:24 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/156936)
6 years, 7 months ago (2014-05-26 10:54:24 UTC) #32
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 7 months ago (2014-05-26 21:56:15 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/284113011/530001
6 years, 7 months ago (2014-05-26 21:56:28 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 23:10:28 UTC) #35
commit-bot: I haz the power
Change committed as 272902
6 years, 7 months ago (2014-05-27 00:29:39 UTC) #36
Nico
Belated comment: I found it fairly surprising that this ends up depending on net_test_support, since ...
5 years, 11 months ago (2015-01-20 17:24:53 UTC) #38
tapted
5 years, 11 months ago (2015-01-21 12:50:32 UTC) #39
Message was sent while issue was closed.
On 2015/01/20 17:24:53, Nico wrote:
> Belated comment: I found it fairly surprising that this ends up depending on
> net_test_support, since nothing in its name suggests that this isn't
production
> code. In practice it looks like it's fine since nothing important depends on
> views_content_client. Is this intentional?

The "nothing important" bit is intentional :). You're right that it's currently
just used for example code: views_examples_with_content_exe and app_list_demo.
The vision is to also use it for ash_shell to avoid some duplication - also
example code.

However, there may be other things that can benefit from this. And I don't think
there's really a need for it to depend on test code - I can probably find or
extract something better to depend on that content_shell_lib. I've filed
http://crbug.com/450575 to investigate.

One thing that comes to mind is `app_shell` [1] - it's not example code, and
might benefit from sharing some of the code here.

[1]
https://code.google.com/p/chromium/codesearch#chromium/src/extensions/shell/R...

Powered by Google App Engine
This is Rietveld 408576698