1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// 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_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_
6#define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_
7
8#import <Cocoa/Cocoa.h>
9
10#import "chrome/browser/ui/cocoa/applescript/bookmark_node_applescript.h"
11
12// Represents a bookmark item scriptable object in applescript.
13@interface BookmarkItemAppleScript : BookmarkNodeAppleScript {
14 @private
15  // Contains the temporary title when a user creates a new item with
16  // title specified like
17  // |make new bookmarks item with properties {title:"foo"}|.
18  NSString* tempURL_;
19}
20
21// Assigns a node, sets its unique ID and also copies temporary values.
22- (void)setBookmarkNode:(const BookmarkNode*)aBookmarkNode;
23
24// Returns the URL that the bookmark item holds.
25- (NSString*)URL;
26
27// Sets the URL of the bookmark item, displays error in applescript console
28// if URL is invalid.
29- (void)setURL:(NSString*)aURL;
30
31@end
32
33#endif  // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_
34