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

Issue 19490002: Add a main menu to the shim that matches the one in Chrome. (Closed)

Created:
7 years, 5 months ago by jackhou1
Modified:
7 years, 4 months ago
Reviewers:
tapted, benwells, Nico, tony
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add a main menu to the shim that matches the one in Chrome. Currently the shim has no main menu. We construct one by adding a first item (which gets replaced by OSX with the app's title) and hiding it. Then a second item is added that will be used as the main menu. BUG=168080 TEST=Start an app and close its window. Cmd+Tab to the shim. The main menu bar should have one unbolded item with the name of the app. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214445

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Localize Quit entry. #

Total comments: 5

Patch Set 4 : Update comment #

Patch Set 5 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -6 lines) Patch
M apps/DEPS View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M apps/app_shim/chrome_main_app_mode_mac.mm View 1 2 3 4 9 chunks +75 lines, -6 lines 0 comments Download
M apps/apps.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
jackhou1
7 years, 5 months ago (2013-07-17 01:51:40 UTC) #1
tapted
https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm#newcode139 apps/app_shim/chrome_main_app_mode_mac.mm:139: base::scoped_nsobject<NSMenu> mainMenu([[NSMenu alloc] initWithTitle:title]); nit: mainMenu -> main_menu, since ...
7 years, 5 months ago (2013-07-17 07:48:24 UTC) #2
jackhou1
https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm#newcode139 apps/app_shim/chrome_main_app_mode_mac.mm:139: base::scoped_nsobject<NSMenu> mainMenu([[NSMenu alloc] initWithTitle:title]); On 2013/07/17 07:48:24, tapted wrote: ...
7 years, 5 months ago (2013-07-22 00:51:46 UTC) #3
tapted
https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm#newcode153 apps/app_shim/chrome_main_app_mode_mac.mm:153: [[NSMenuItem alloc] initWithTitle:[@"Quit " stringByAppendingString:title] On 2013/07/22 00:51:46, jackhou1 ...
7 years, 5 months ago (2013-07-22 02:35:09 UTC) #4
jackhou1
PTAL. Figured out how to get the localized strings. https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/19490002/diff/1/apps/app_shim/chrome_main_app_mode_mac.mm#newcode153 apps/app_shim/chrome_main_app_mode_mac.mm:153: ...
7 years, 5 months ago (2013-07-22 11:27:04 UTC) #5
tapted
+benwells for an opinion on the DEPS changes. Some things that crossed my mind: - ...
7 years, 5 months ago (2013-07-23 04:51:16 UTC) #6
tapted
https://codereview.chromium.org/19490002/diff/10001/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/19490002/diff/10001/apps/DEPS#newcode35 apps/DEPS:35: "+grit/generated_resources.h", How does everything else avoid adding this to ...
7 years, 5 months ago (2013-07-23 05:24:34 UTC) #7
jackhou1
https://codereview.chromium.org/19490002/diff/10001/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/19490002/diff/10001/apps/DEPS#newcode35 apps/DEPS:35: "+grit/generated_resources.h", On 2013/07/23 05:24:35, tapted wrote: > How does ...
7 years, 5 months ago (2013-07-23 06:22:22 UTC) #8
tapted
code change looks good, but it should have a TEST= line I'm leaning towards suggesting ...
7 years, 5 months ago (2013-07-23 07:39:40 UTC) #9
benwells
lgtm
7 years, 5 months ago (2013-07-24 01:29:40 UTC) #10
tapted
lgtm if ben's happy with those DEPS
7 years, 5 months ago (2013-07-24 03:01:25 UTC) #11
benwells
On 2013/07/24 03:01:25, tapted wrote: > lgtm if ben's happy with those DEPS to be ...
7 years, 5 months ago (2013-07-24 03:30:16 UTC) #12
jackhou1
thakis, please review adding chrome/common/chrome_constants.h to apps/DEPS BTW, presubmit said I needed lgtm for adding ...
7 years, 5 months ago (2013-07-24 03:52:20 UTC) #13
Nico
On 2013/07/24 03:30:16, benwells wrote: > On 2013/07/24 03:01:25, tapted wrote: > > lgtm if ...
7 years, 5 months ago (2013-07-24 20:34:24 UTC) #14
benwells
On 2013/07/24 20:34:24, Nico wrote: > On 2013/07/24 03:30:16, benwells wrote: > > On 2013/07/24 ...
7 years, 5 months ago (2013-07-25 00:53:08 UTC) #15
jackhou1
On 2013/07/24 20:34:24, Nico wrote: > On 2013/07/24 03:30:16, benwells wrote: > > On 2013/07/24 ...
7 years, 5 months ago (2013-07-25 01:20:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 5 months ago (2013-07-25 01:25:11 UTC) #17
jackhou1
Ah that didn't work. Looks like it does need a chrome/common/ lgtm. And apparently also ...
7 years, 5 months ago (2013-07-25 05:38:56 UTC) #18
tapted
The context: Running presubmit commit checks ... Running /mnt/scratch0/b_used/build/slave/linux/build/src/PRESUBMIT.py Running /mnt/scratch0/b_used/build/slave/linux/build/src/third_party/PRESUBMIT.py ** Presubmit ERRORS ** ...
7 years, 5 months ago (2013-07-25 06:10:21 UTC) #19
benwells
On 2013/07/25 05:38:56, jackhou1 wrote: > Ah that didn't work. Looks like it does need ...
7 years, 5 months ago (2013-07-25 06:10:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 5 months ago (2013-07-25 09:30:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 5 months ago (2013-07-25 12:36:50 UTC) #22
Nico
joi@ or tony@ are grit owners.
7 years, 5 months ago (2013-07-25 18:09:49 UTC) #23
Nico
chrome/common lgtm
7 years, 5 months ago (2013-07-25 18:10:31 UTC) #24
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=17112
7 years, 5 months ago (2013-07-25 19:21:58 UTC) #25
jackhou1
tony, could you please review apps/DEPS for OWNERS of grit
7 years, 5 months ago (2013-07-25 23:20:42 UTC) #26
tony
DEPS LGTM
7 years, 5 months ago (2013-07-25 23:26:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 5 months ago (2013-07-26 03:48:07 UTC) #28
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=17272
7 years, 5 months ago (2013-07-26 06:38:19 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 4 months ago (2013-07-27 20:45:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 4 months ago (2013-07-27 20:57:07 UTC) #31
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=63889
7 years, 4 months ago (2013-07-28 00:42:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 4 months ago (2013-07-30 07:23:28 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/19490002/25001
7 years, 4 months ago (2013-07-30 10:43:49 UTC) #34
commit-bot: I haz the power
7 years, 4 months ago (2013-07-30 22:33:01 UTC) #35
Message was sent while issue was closed.
Change committed as 214445

Powered by Google App Engine
This is Rietveld 408576698