OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLER_H
_ | 4 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLER_H
_ |
5 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLER_H
_ | 5 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLER_H
_ |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" | 9 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 - (void)bookmarkFolderEditorDidCancel: | 32 - (void)bookmarkFolderEditorDidCancel: |
33 (BookmarkFolderEditorViewController*)folderEditor; | 33 (BookmarkFolderEditorViewController*)folderEditor; |
34 @end | 34 @end |
35 | 35 |
36 // View controller for creating or editing a bookmark folder. Allows editing of | 36 // View controller for creating or editing a bookmark folder. Allows editing of |
37 // the title and selecting the parent folder of the bookmark. | 37 // the title and selecting the parent folder of the bookmark. |
38 // This controller monitors the state of the bookmark model, so changes to the | 38 // This controller monitors the state of the bookmark model, so changes to the |
39 // bookmark model can affect this controller's state. | 39 // bookmark model can affect this controller's state. |
40 @interface BookmarkFolderEditorViewController : CollectionViewController | 40 @interface BookmarkFolderEditorViewController : CollectionViewController |
41 | 41 |
42 @property(nonatomic, weak) id<BookmarkFolderEditorViewControllerDelegate> | 42 @property(nonatomic, assign) id<BookmarkFolderEditorViewControllerDelegate> |
43 delegate; | 43 delegate; |
44 | 44 |
45 // Designated factory methods. | 45 // Designated factory methods. |
46 | 46 |
47 // Returns a view controller set to create a new folder in |parentFolder|. | 47 // Returns a view controller set to create a new folder in |parentFolder|. |
48 // If |parentFolder| is NULL, a default parent will be set. | 48 // If |parentFolder| is NULL, a default parent will be set. |
49 // |bookmarkModel| must not be NULL and must be loaded. | 49 // |bookmarkModel| must not be NULL and must be loaded. |
50 + (instancetype) | 50 + (instancetype) |
51 folderCreatorWithBookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel | 51 folderCreatorWithBookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel |
52 parentFolder:(const bookmarks::BookmarkNode*)parentFolder; | 52 parentFolder:(const bookmarks::BookmarkNode*)parentFolder; |
53 | 53 |
54 // |bookmarkModel| must not be null and must be loaded. | 54 // |bookmarkModel| must not be null and must be loaded. |
55 // |folder| must not be NULL and be editable. | 55 // |folder| must not be NULL and be editable. |
56 // |browserState| must not be null. | 56 // |browserState| must not be null. |
57 + (instancetype) | 57 + (instancetype) |
58 folderEditorWithBookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel | 58 folderEditorWithBookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel |
59 folder:(const bookmarks::BookmarkNode*)folder | 59 folder:(const bookmarks::BookmarkNode*)folder |
60 browserState:(ios::ChromeBrowserState*)browserState; | 60 browserState:(ios::ChromeBrowserState*)browserState; |
61 | 61 |
62 @end | 62 @end |
63 | 63 |
64 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLE
R_H_ | 64 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_VIEW_CONTROLLE
R_H_ |
OLD | NEW |