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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_
7 7
8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h" 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h"
9 9
10 @class DialogTextFieldEditor;
11
10 // A controller for the bookmark editor, opened by 1) Edit... from the 12 // A controller for the bookmark editor, opened by 1) Edit... from the
11 // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit 13 // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit
12 // button. 14 // button.
13 @interface BookmarkEditorController : BookmarkEditorBaseController { 15 @interface BookmarkEditorController : BookmarkEditorBaseController {
14 @private 16 @private
15 const bookmarks::BookmarkNode* node_; // weak; owned by the model 17 const bookmarks::BookmarkNode* node_; // weak; owned by the model
16 base::scoped_nsobject<NSString> initialUrl_; 18 base::scoped_nsobject<NSString> initialUrl_;
17 NSString* displayURL_; // Bound to a text field in the dialog. 19 NSString* displayURL_; // Bound to a text field in the dialog.
18 IBOutlet NSTextField* urlField_; 20 IBOutlet NSTextField* urlField_;
19 IBOutlet NSTextField* nameTextField_; 21 IBOutlet NSTextField* nameTextField_;
22
23 // Field editors for |urlField_| and |nameTextField_|.
24 base::scoped_nsobject<DialogTextFieldEditor> urlFieldEditor_;
25 base::scoped_nsobject<DialogTextFieldEditor> nameFieldEditor_;
20 } 26 }
21 27
22 @property(nonatomic, copy) NSString* displayURL; 28 @property(nonatomic, copy) NSString* displayURL;
23 29
24 - (id)initWithParentWindow:(NSWindow*)parentWindow 30 - (id)initWithParentWindow:(NSWindow*)parentWindow
25 profile:(Profile*)profile 31 profile:(Profile*)profile
26 parent:(const bookmarks::BookmarkNode*)parent 32 parent:(const bookmarks::BookmarkNode*)parent
27 node:(const bookmarks::BookmarkNode*)node 33 node:(const bookmarks::BookmarkNode*)node
28 url:(const GURL&)url 34 url:(const GURL&)url
29 title:(const base::string16&)title 35 title:(const base::string16&)title
30 configuration:(BookmarkEditor::Configuration)configuration; 36 configuration:(BookmarkEditor::Configuration)configuration;
31 37
32 @end 38 @end
33 39
34 @interface BookmarkEditorController (UnitTesting) 40 @interface BookmarkEditorController (UnitTesting)
35 - (NSColor *)urlFieldColor; 41 - (NSColor *)urlFieldColor;
36 @end 42 @end
37 43
38 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698