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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.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/bookmarks/bookmark_editor_base_controller.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h
index 1b8514d7f8e5919adb8524b557845591bf7dbd29..59145999ecacf2394c19b3364db23f46ceb0722c 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h
@@ -12,6 +12,7 @@
#include "base/mac/scoped_nsobject.h"
#include "chrome/browser/ui/bookmarks/bookmark_editor.h"
#include "components/bookmarks/browser/bookmark_expanded_state_tracker.h"
+#import "ui/base/cocoa/touch_bar_forward_declarations.h"
class BookmarkEditorBaseControllerBridge;
@class BookmarkTreeBrowserCell;
@@ -27,7 +28,7 @@ class BookmarkModel;
// BookmarkEditor::Show static function found in the accompanying
// implementation, that function will need to be update.
@interface BookmarkEditorBaseController
- : NSWindowController<NSOutlineViewDelegate> {
+ : NSWindowController<NSOutlineViewDelegate, NSTouchBarDelegate> {
@private
IBOutlet NSButton* newFolderButton_;
IBOutlet NSButton* okButton_; // Used for unit testing only.
@@ -68,6 +69,9 @@ class BookmarkModel;
title:(const base::string16&)title
configuration:(BookmarkEditor::Configuration)configuration;
+// Override to customize the touch bar.
+- (NSTouchBar*)makeTouchBar;
+
// Run the bookmark editor as a modal sheet. Does not block.
- (void)runAsModalSheet;

Powered by Google App Engine
This is Rietveld 408576698