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