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

Unified Diff: chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h

Issue 2921083003: [Mac] Touch Bar Support for Dialogs (Closed)
Patch Set: Added test and renamed methods Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
diff --git a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
index 1c834c83e2c514b6ed0aa30451f3fb510a9863ed..3972b5ed9150f16c15bf5e9e35b2f249780bf02f 100644
--- a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
+++ b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
#include "content/public/common/media_stream_request.h"
+#import "ui/base/cocoa/touch_bar_forward_declarations.h"
class ContentSettingBubbleModel;
class ContentSettingBubbleWebContentsObserverBridge;
@@ -54,7 +55,8 @@ using MediaMenuPartsMap =
} // namespace content_setting_bubble
// Manages a "content blocked" bubble.
-@interface ContentSettingBubbleController : OmniboxDecorationBubbleController {
+@interface ContentSettingBubbleController
+ : OmniboxDecorationBubbleController<NSTouchBarDelegate> {
@protected
IBOutlet NSTextField* titleLabel_;
IBOutlet NSTextField* messageLabel_;
@@ -101,6 +103,9 @@ parentWindow:(NSWindow*)parentWindow
decoration:(ContentSettingDecoration*)decoration
anchoredAt:(NSPoint)anchoredAt;
+// Override to customize the touch bar.
+- (NSTouchBar*)makeTouchBar;
+
// Initializes the layout of all the UI elements.
- (void)layoutView;

Powered by Google App Engine
This is Rietveld 408576698