| OLD | NEW |
| (Empty) | |
| 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_COCOA_APPLESCRIPT_BOOKMARK_FOLDER_APPLESCRIPT_H_ |
| 6 #define CHROME_BROWSER_COCOA_APPLESCRIPT_BOOKMARK_FOLDER_APPLESCRIPT_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #import "chrome/browser/cocoa/applescript/bookmark_node_applescript.h" |
| 11 |
| 12 // Represent a bookmark folder scriptable object in applescript. |
| 13 @interface BookmarkFolderAppleScript : BookmarkNodeAppleScript { |
| 14 |
| 15 } |
| 16 |
| 17 // Bookmark folder manipulation methods. |
| 18 // Returns an array of |BookmarkFolderAppleScript*| of all the bookmark folders |
| 19 // contained within this particular folder. |
| 20 - (NSArray*)bookmarkFolders; |
| 21 |
| 22 // Inserts a bookmark folder at the end. |
| 23 - (void)insertInBookmarkFolders:(id)aBookmarkFolder; |
| 24 |
| 25 // Inserts a bookmark folder at some position in the list. |
| 26 // Called by applescript which takes care of bounds checking, make sure of it |
| 27 // before calling directly. |
| 28 - (void)insertInBookmarkFolders:(id)aBookmarkFolder atIndex:(int)index; |
| 29 |
| 30 // Remove a bookmark folder from the list. |
| 31 // Called by applescript which takes care of bounds checking, make sure of it |
| 32 // before calling directly. |
| 33 - (void)removeFromBookmarkFoldersAtIndex:(int)index; |
| 34 |
| 35 // Bookmark item manipulation methods. |
| 36 // Returns an array of |BookmarkItemAppleScript*| of all the bookmark items |
| 37 // contained within this particular folder. |
| 38 - (NSArray*)bookmarkItems; |
| 39 |
| 40 // Inserts a bookmark item at the end. |
| 41 - (void)insertInBookmarkItems:(id)aBookmarkItem; |
| 42 |
| 43 // Inserts a bookmark item at some position in the list. |
| 44 // Called by applescript which takes care of bounds checking, make sure of it |
| 45 // before calling directly. |
| 46 - (void)insertInBookmarkItems:(id)aBookmarkItem atIndex:(int)index; |
| 47 |
| 48 // Removes a bookmarks folder from the list. |
| 49 // Called by applescript which takes care of bounds checking, make sure of it |
| 50 // before calling directly. |
| 51 - (void)removeFromBookmarkItemsAtIndex:(int)index; |
| 52 |
| 53 // Returns the position of a bookmark folder within the current bookmark folder |
| 54 // which consists of bookmark folders as well as bookmark items. |
| 55 // AppleScript makes sure that there is a bookmark folder before calling this |
| 56 // method, make sure of that before calling directly. |
| 57 - (int)calculatePositionOfBookmarkFolderAt:(int)index; |
| 58 |
| 59 // Returns the position of a bookmark item within the current bookmark folder |
| 60 // which consists of bookmark folders as well as bookmark items. |
| 61 // AppleScript makes sure that there is a bookmark item before calling this |
| 62 // method, make sure of that before calling directly. |
| 63 - (int)calculatePositionOfBookmarkItemAt:(int)index; |
| 64 |
| 65 @end |
| 66 |
| 67 #endif // CHROME_BROWSER_COCOA_APPLESCRIPT_BOOKMARK_FOLDER_APPLESCRIPT_H_ |
| OLD | NEW |