blob: 24fde0231d32a463884a7f22e62dd2329af68aab [file] [log] [blame]
[email protected]5f3b0f42010-04-29 06:03:481// Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]ee01535e2009-07-21 23:57:192// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_
6#define CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_
7
[email protected]a5971dc2009-11-06 03:24:298#import "chrome/browser/cocoa/bookmark_editor_base_controller.h"
[email protected]fbc93b362009-10-29 22:10:329
[email protected]487bd7a02009-11-19 00:06:0410// 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
12// button.
[email protected]a5971dc2009-11-06 03:24:2913@interface BookmarkEditorController : BookmarkEditorBaseController {
[email protected]ee01535e2009-07-21 23:57:1914 @private
[email protected]ee01535e2009-07-21 23:57:1915 const BookmarkNode* node_; // weak; owned by the model
[email protected]ee01535e2009-07-21 23:57:1916 scoped_nsobject<NSString> initialUrl_;
[email protected]a5971dc2009-11-06 03:24:2917 NSString* displayURL_; // Bound to a text field in the dialog.
[email protected]690aa5c2010-03-30 01:33:3518 IBOutlet NSTextField* urlField_;
[email protected]ee01535e2009-07-21 23:57:1919}
20
[email protected]a866cc22010-06-15 17:34:5921@property (nonatomic, copy) NSString* displayURL;
[email protected]a5971dc2009-11-06 03:24:2922
[email protected]ee01535e2009-07-21 23:57:1923- (id)initWithParentWindow:(NSWindow*)parentWindow
24 profile:(Profile*)profile
25 parent:(const BookmarkNode*)parent
26 node:(const BookmarkNode*)node
[email protected]5f3b0f42010-04-29 06:03:4827 configuration:(BookmarkEditor::Configuration)configuration;
[email protected]ee01535e2009-07-21 23:57:1928
[email protected]ee01535e2009-07-21 23:57:1929@end
30
[email protected]690aa5c2010-03-30 01:33:3531@interface BookmarkEditorController (UnitTesting)
32- (NSColor *)urlFieldColor;
33@end
34
[email protected]5f3b0f42010-04-29 06:03:4835#endif // CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_