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

Issue 745093002: AppShell support for Mac. (Closed)

Created:
6 years, 1 month ago by Yoyo Zhou
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

AppShell support for Mac. Very basic support for app_shell on Mac cocoa. It allows building and running app_shell, app_shell_unittests, and app_shell_browsertests on Mac. It introduces app_shell_framework and app_shell_helper targets. Much of the work is based on the content_shell equivalents. The above targets build as part of 'all' on Mac, but are not yet covered by trybots. Shortcomings compared to Aura: - The AppShell desktop controller doesn't support tracking multiple app windows. - Running App Shell --load-apps works (at least for the Calculator sample) but can only be exited via ^C at the command line, and there is no Mac menu. BUG=399363 Committed: https://crrev.com/289ee7c3b41766e6996b6a7d6ecd5a574b2a147e Cr-Commit-Position: refs/heads/master@{#309256}

Patch Set 1 : unittests too #

Total comments: 2

Patch Set 2 : fix win #

Total comments: 37

Patch Set 3 : jamescook #

Total comments: 3

Patch Set 4 : jamescook2 #

Total comments: 39

Patch Set 5 : tapted #

Total comments: 2

Patch Set 6 : minors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -33 lines) Patch
M build/all.gyp View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/shell/app/app-Info.plist View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/shell/app/framework-Info.plist View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/shell/app/helper-Info.plist View 1 chunk +1 line, -1 line 0 comments Download
A extensions/shell/app/paths_mac.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A extensions/shell/app/paths_mac.mm View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M extensions/shell/app/shell_main.cc View 1 2 1 chunk +20 lines, -7 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.h View 1 chunk +1 line, -2 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.cc View 1 2 4 chunks +27 lines, -4 lines 0 comments Download
A extensions/shell/app/shell_main_mac.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A + extensions/shell/app/shell_main_mac.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 14 chunks +238 lines, -6 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/default_shell_browser_main_delegate.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_app_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
A + extensions/shell/browser/shell_app_window_client_mac.mm View 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_browser_main_parts_mac.h View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_browser_main_parts_mac.mm View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_browsertest.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_desktop_controller_mac.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_desktop_controller_mac.mm View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_native_app_window_mac.h View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_native_app_window_mac.mm View 1 2 3 4 5 1 chunk +120 lines, -0 lines 0 comments Download
M extensions/shell/test/shell_test.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Yoyo Zhou
James: you're the main AppShell reviewer. Can you review the appropriate app_shell changes? Mark: you're ...
6 years ago (2014-12-10 02:18:19 UTC) #6
James Cook
Overall approach looks good. Lots of questions. https://codereview.chromium.org/745093002/diff/100001/extensions/shell/app/app-Info.plist File extensions/shell/app/app-Info.plist (right): https://codereview.chromium.org/745093002/diff/100001/extensions/shell/app/app-Info.plist#newcode14 extensions/shell/app/app-Info.plist:14: <string>org.chromium.AppShell</string> tabs ...
6 years ago (2014-12-10 21:05:01 UTC) #7
Yoyo Zhou
Thanks for the review. https://chromiumcodereview.appspot.com/745093002/diff/100001/extensions/shell/app/app-Info.plist File extensions/shell/app/app-Info.plist (right): https://chromiumcodereview.appspot.com/745093002/diff/100001/extensions/shell/app/app-Info.plist#newcode14 extensions/shell/app/app-Info.plist:14: <string>org.chromium.AppShell</string> On 2014/12/10 21:05:00, James ...
6 years ago (2014-12-11 02:40:50 UTC) #8
James Cook
Looking good. https://chromiumcodereview.appspot.com/745093002/diff/100001/extensions/shell/app/app-Info.plist File extensions/shell/app/app-Info.plist (right): https://chromiumcodereview.appspot.com/745093002/diff/100001/extensions/shell/app/app-Info.plist#newcode14 extensions/shell/app/app-Info.plist:14: <string>org.chromium.AppShell</string> On 2014/12/11 02:40:49, Yoyo Zhou wrote: ...
6 years ago (2014-12-11 20:08:28 UTC) #9
Yoyo Zhou
Mark: ping. If you can't do this review, can you suggest an alternate reviewer? https://chromiumcodereview.appspot.com/745093002/diff/100001/extensions/shell/browser/shell_browser_main_parts_mac.mm ...
6 years ago (2014-12-16 01:11:19 UTC) #10
Mark Mentovai
Sorry, I’m not sure I’ll be able to get to this. You can try thakis, ...
6 years ago (2014-12-16 14:21:13 UTC) #11
James Cook
non-Mac bits LGTM with nit https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/browser/shell_browser_main_parts_mac.h File extensions/shell/browser/shell_browser_main_parts_mac.h (right): https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/browser/shell_browser_main_parts_mac.h#newcode13 extensions/shell/browser/shell_browser_main_parts_mac.h:13: } nit: // namespace ...
6 years ago (2014-12-16 16:56:03 UTC) #12
Yoyo Zhou
Nico, can you take a look at the Mac parts of this?
6 years ago (2014-12-16 21:02:22 UTC) #14
Nico
app shell mac -> tapted (i think?)
6 years ago (2014-12-16 23:44:36 UTC) #16
tapted
On 2014/12/16 23:44:36, Nico wrote: > app shell mac -> tapted (i think?) Yep - ...
6 years ago (2014-12-17 00:00:51 UTC) #17
tapted
Some of the gyp stuff is a bit over my head TBH. I didn't spot ...
6 years ago (2014-12-17 08:05:16 UTC) #18
Yoyo Zhou
https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/app/paths_mac.mm File extensions/shell/app/paths_mac.mm (right): https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/app/paths_mac.mm#newcode10 extensions/shell/app/paths_mac.mm:10: #include "base/mac/bundle_locations.h" On 2014/12/17 08:05:15, tapted wrote: > nit: ...
6 years ago (2014-12-18 02:38:34 UTC) #19
tapted
lgtm with the .release() removed - sorry for the confusion. https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/app/paths_mac.mm File extensions/shell/app/paths_mac.mm (right): https://chromiumcodereview.appspot.com/745093002/diff/140001/extensions/shell/app/paths_mac.mm#newcode10 ...
6 years ago (2014-12-18 03:30:55 UTC) #20
Yoyo Zhou
thakis: can I get an LG for build/all.gyp? If you have any other feedback on ...
6 years ago (2014-12-18 22:42:07 UTC) #22
Nico
all.gyp lgtm I glanced over the other gyp changes; they look similar to other mac ...
6 years ago (2014-12-18 22:50:56 UTC) #23
Mike West
content/shell LGTM.
6 years ago (2014-12-19 08:47:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/745093002/180001
6 years ago (2014-12-19 19:51:43 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:180001)
6 years ago (2014-12-19 20:58:52 UTC) #27
commit-bot: I haz the power
6 years ago (2014-12-19 20:59:55 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/289ee7c3b41766e6996b6a7d6ecd5a574b2a147e
Cr-Commit-Position: refs/heads/master@{#309256}

Powered by Google App Engine
This is Rietveld 408576698