|
|
[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
Total comments: 10
|
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
|
Total messages: 40 (31 generated)
|