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

Issue 2814683005: [Mac] Support for Touch Bar Customization (Closed)

Created:
3 years, 8 months ago by spqchan
Modified:
3 years, 8 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, srahim+watch_chromium.org, danakj+watch_chromium.org, mac-reviews_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Support for Touch Bar Customization Implement customization support for the default touch bar. Changed the item identifiers to reverse-DNS style format. BUG=710100 Review-Url: https://codereview.chromium.org/2814683005 Cr-Commit-Position: refs/heads/master@{#464967} Committed: https://chromium.googlesource.com/chromium/src/+/1ad3c00f56fbf19ecba52bdf0591ca7ad1098d3a

Patch Set 1 : . #

Patch Set 2 : Fixed the search button width #

Patch Set 3 : Cleaned up #

Total comments: 5

Patch Set 4 : Fix for rsesek #

Total comments: 4

Patch Set 5 : Fix for rsesek #

Patch Set 6 : Use BaseBundleId() #

Total comments: 10

Patch Set 7 : Fix for rsesek #

Patch Set 8 : Fix the identifier format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -35 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +20 lines, -1 line 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_touch_bar.mm View 1 2 3 4 5 6 7 8 chunks +72 lines, -34 lines 0 comments Download

Messages

Total messages: 52 (33 generated)
spqchan
PTAL
3 years, 8 months ago (2017-04-13 18:08:51 UTC) #17
Robert Sesek
https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/app_controller_mac.mm#newcode745 chrome/browser/app_controller_mac.mm:745: [NSApplication sharedApplication].automaticCustomizeTouchBarMenuItemEnabled = Won't this crash on anything <10.12.1? ...
3 years, 8 months ago (2017-04-13 18:45:32 UTC) #20
spqchan
PTAL https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/app_controller_mac.mm#newcode745 chrome/browser/app_controller_mac.mm:745: [NSApplication sharedApplication].automaticCustomizeTouchBarMenuItemEnabled = On 2017/04/13 18:45:32, Robert Sesek ...
3 years, 8 months ago (2017-04-13 21:13:51 UTC) #23
Robert Sesek
https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm File chrome/browser/ui/cocoa/browser_window_touch_bar.mm (right): https://codereview.chromium.org/2814683005/diff/60001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm#newcode57 chrome/browser/ui/cocoa/browser_window_touch_bar.mm:57: @"com.google.chrome.browser-window"; On 2017/04/13 21:13:50, spqchan wrote: > On 2017/04/13 ...
3 years, 8 months ago (2017-04-14 16:56:20 UTC) #26
spqchan
I'm not familiar with formatting with base::mac::BaseBundleID(). Do you mean retrieving the bundle id string ...
3 years, 8 months ago (2017-04-14 18:02:19 UTC) #27
Robert Sesek
On 2017/04/14 18:02:19, spqchan wrote: > I'm not familiar with formatting with base::mac::BaseBundleID(). Do you ...
3 years, 8 months ago (2017-04-14 18:22:17 UTC) #28
spqchan
https://codereview.chromium.org/2814683005/diff/80001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/2814683005/diff/80001/chrome/browser/app_controller_mac.mm#newcode747 chrome/browser/app_controller_mac.mm:747: (setAutomaticCustomizeTouchBarMenuItemEnabled:)]) { On 2017/04/14 18:22:17, Robert Sesek wrote: > ...
3 years, 8 months ago (2017-04-14 22:46:58 UTC) #31
Robert Sesek
LGTM w/ nits https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm File chrome/browser/ui/cocoa/browser_window_touch_bar.mm (right): https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm#newcode60 chrome/browser/ui/cocoa/browser_window_touch_bar.mm:60: NSString* const kBackForwardTouchId = @"BACK-FWD"; CamelCase ...
3 years, 8 months ago (2017-04-17 16:56:23 UTC) #35
spqchan
https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm File chrome/browser/ui/cocoa/browser_window_touch_bar.mm (right): https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm#newcode60 chrome/browser/ui/cocoa/browser_window_touch_bar.mm:60: NSString* const kBackForwardTouchId = @"BACK-FWD"; On 2017/04/17 16:56:23, Robert ...
3 years, 8 months ago (2017-04-17 17:56:37 UTC) #36
Robert Sesek
https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm File chrome/browser/ui/cocoa/browser_window_touch_bar.mm (right): https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm#newcode107 chrome/browser/ui/cocoa/browser_window_touch_bar.mm:107: return [NSString stringWithFormat:@"%@-%@", chrome_bundle_id, touch_bar_id]; On 2017/04/17 17:56:37, spqchan ...
3 years, 8 months ago (2017-04-17 17:57:54 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814683005/160001
3 years, 8 months ago (2017-04-17 17:58:14 UTC) #40
spqchan
On 2017/04/17 17:57:54, Robert Sesek wrote: > https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm > File chrome/browser/ui/cocoa/browser_window_touch_bar.mm (right): > > https://codereview.chromium.org/2814683005/diff/140001/chrome/browser/ui/cocoa/browser_window_touch_bar.mm#newcode107 ...
3 years, 8 months ago (2017-04-17 18:13:13 UTC) #42
spqchan
On 2017/04/17 18:13:13, spqchan wrote: > On 2017/04/17 17:57:54, Robert Sesek wrote: > > > ...
3 years, 8 months ago (2017-04-17 18:21:44 UTC) #43
Robert Sesek
lgtm
3 years, 8 months ago (2017-04-17 18:22:23 UTC) #44
spqchan
On 2017/04/17 18:22:23, Robert Sesek wrote: > lgtm thanks!
3 years, 8 months ago (2017-04-17 18:25:21 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814683005/180001
3 years, 8 months ago (2017-04-17 18:25:44 UTC) #47
commit-bot: I haz the power
Committed patchset #8 (id:180001) as https://chromium.googlesource.com/chromium/src/+/1ad3c00f56fbf19ecba52bdf0591ca7ad1098d3a
3 years, 8 months ago (2017-04-17 19:14:11 UTC) #50
spqchan
A revert of this CL (patchset #8 id:180001) has been created in https://codereview.chromium.org/2831713002/ by spqchan@chromium.org. ...
3 years, 8 months ago (2017-04-19 18:38:39 UTC) #51
cvazac
3 years, 8 months ago (2017-04-19 20:32:55 UTC) #52
Message was sent while issue was closed.
I believe this broke non-sierra builds. I'm on 10.11.6 and get the following:
../../chrome/browser/ui/cocoa/browser_window_touch_bar.mm:237:32: error:
'NSTouchBarItemIdentifierFlexibleSpace' is only available on macOS 10_12_2 or
newer [-Werror,-Wunguarded-availability]
  [customIdentifiers addObject:NSTouchBarItemIdentifierFlexibleSpace];

Powered by Google App Engine
This is Rietveld 408576698