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

Issue 2921083003: [Mac] Touch Bar Support for Dialogs (Closed)

Created:
3 years, 6 months ago by spqchan
Modified:
3 years, 6 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Touch Bar Support for Dialogs Implemented touch bar for bookmark bubble, bookmark editor, and content setting bubble dialogs. Moved GetTouchBarId() and GetTouchBarItemId() from BrowserWindowTouchBar to foundation_util. Since the bookmark and bookmark editor dialogs contain textfields, their touch bar would be overridden by the textfields. To prevent that, the dialogs will provide a DialogTextFieldEditor object as a custom text field editor. Touch bar tests are added to: - bookmark_bubble_controller_unittest.mm - bookmark_editor_base_controller_unittest.mm - content_setting_bubble_cocoa_browsertest.mm Bug=698795 Review-Url: https://codereview.chromium.org/2921083003 Cr-Commit-Position: refs/heads/master@{#477756} Committed: https://chromium.googlesource.com/chromium/src/+/69b6752a16b133e7dc53822317202bd6f81401dc

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 10

Patch Set 3 : Fixes for rsesek #

Patch Set 4 : Added test and renamed methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -44 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h View 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm View 1 2 3 3 chunks +74 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm View 1 2 3 5 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm View 1 2 3 3 chunks +64 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller_unittest.mm View 1 2 3 4 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm View 1 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_touch_bar.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_touch_bar.mm View 1 2 3 8 chunks +13 lines, -31 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_touch_bar_unittest.mm View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 2 3 4 chunks +63 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm View 1 2 3 3 chunks +44 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/dialog_text_field_editor.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/dialog_text_field_editor.mm View 1 chunk +22 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A ui/base/cocoa/touch_bar_util.h View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A ui/base/cocoa/touch_bar_util.mm View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A ui/base/cocoa/touch_bar_util_unittest.mm View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (31 generated)
spqchan
PTAL. Let me know if you have any questions or want me to split up ...
3 years, 6 months ago (2017-06-02 21:23:58 UTC) #10
Robert Sesek
It would have been nice to split this up, but it's pretty straightforward so it's ...
3 years, 6 months ago (2017-06-06 14:52:36 UTC) #13
spqchan
I'm writing unit tests for touch_bar_utils. What should I change the "Create" method names to? ...
3 years, 6 months ago (2017-06-06 19:34:51 UTC) #16
Robert Sesek
https://codereview.chromium.org/2921083003/diff/20001/ui/base/cocoa/touch_bar_util.h File ui/base/cocoa/touch_bar_util.h (right): https://codereview.chromium.org/2921083003/diff/20001/ui/base/cocoa/touch_bar_util.h#newcode16 ui/base/cocoa/touch_bar_util.h:16: UI_BASE_EXPORT NSButton* CreateBlueTouchBarButton(NSString* title, On 2017/06/06 19:34:50, spqchan wrote: ...
3 years, 6 months ago (2017-06-06 20:15:00 UTC) #17
spqchan
Great, thanks. I added a unit test and addressed your comments
3 years, 6 months ago (2017-06-07 00:07:59 UTC) #31
Robert Sesek
LGTM
3 years, 6 months ago (2017-06-07 15:18:33 UTC) #34
spqchan
On 2017/06/07 15:18:33, Robert Sesek wrote: > LGTM thanks!
3 years, 6 months ago (2017-06-07 20:32:46 UTC) #35
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/2921083003/100001
3 years, 6 months ago (2017-06-07 20:33:29 UTC) #37
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 20:57:13 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/69b6752a16b133e7dc5382231720...

Powered by Google App Engine
This is Rietveld 408576698