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_EDIT_VIEW_CONTROLLER_H_ | 4 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_EDIT_VIEW_CONTROLLER_H_ |
5 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_EDIT_VIEW_CONTROLLER_H_ | 5 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_EDIT_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 25 matching lines...) Expand all Loading... |
36 @end | 36 @end |
37 | 37 |
38 // View controller for editing bookmarks. Allows editing of the title, URL and | 38 // View controller for editing bookmarks. Allows editing of the title, URL and |
39 // the parent folder of the bookmark. | 39 // the parent folder of the bookmark. |
40 // | 40 // |
41 // This view controller will also monitor bookmark model change events and react | 41 // This view controller will also monitor bookmark model change events and react |
42 // accordingly depending on whether the bookmark and folder it is editing | 42 // accordingly depending on whether the bookmark and folder it is editing |
43 // changes underneath it. | 43 // changes underneath it. |
44 @interface BookmarkEditViewController : CollectionViewController | 44 @interface BookmarkEditViewController : CollectionViewController |
45 | 45 |
46 @property(nonatomic, assign) id<BookmarkEditViewControllerDelegate> delegate; | 46 @property(nonatomic, weak) id<BookmarkEditViewControllerDelegate> delegate; |
47 | 47 |
48 // Designated initializer. | 48 // Designated initializer. |
49 // |bookmark|: mustn't be NULL at initialization time. It also mustn't be a | 49 // |bookmark|: mustn't be NULL at initialization time. It also mustn't be a |
50 // folder. | 50 // folder. |
51 - (instancetype)initWithBookmark:(const bookmarks::BookmarkNode*)bookmark | 51 - (instancetype)initWithBookmark:(const bookmarks::BookmarkNode*)bookmark |
52 browserState:(ios::ChromeBrowserState*)browserState | 52 browserState:(ios::ChromeBrowserState*)browserState |
53 NS_DESIGNATED_INITIALIZER; | 53 NS_DESIGNATED_INITIALIZER; |
54 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 54 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
55 NS_UNAVAILABLE; | 55 NS_UNAVAILABLE; |
56 | 56 |
57 // Closes the edit view as if close button was pressed. | 57 // Closes the edit view as if close button was pressed. |
58 - (void)dismiss; | 58 - (void)dismiss; |
59 | 59 |
60 @end | 60 @end |
61 | 61 |
62 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_EDIT_VIEW_CONTROLLER_H_ | 62 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_EDIT_VIEW_CONTROLLER_H_ |
OLD | NEW |