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.
5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_
6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_
8 #import <Cocoa/Cocoa.h>
10 #import "chrome/browser/ui/cocoa/applescript/bookmark_node_applescript.h"
12 // Represents a bookmark item scriptable object in applescript.
13 @interface BookmarkItemAppleScript
: BookmarkNodeAppleScript
{
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"}|.
21 // Assigns a node, sets its unique ID and also copies temporary values.
22 - (void)setBookmarkNode
:(const BookmarkNode
*)aBookmarkNode
;
24 // Returns the URL that the bookmark item holds.
27 // Sets the URL of the bookmark item, displays error in applescript console
29 - (void)setURL
:(NSString
*)aURL
;
33 #endif // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_ITEM_APPLESCRIPT_H_