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_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 @class BookmarkButton; | 10 @class BookmarkButton; |
11 @protocol BookmarkButtonControllerProtocol; | 11 @protocol BookmarkButtonControllerProtocol; |
12 class BookmarkNode; | |
13 class Profile; | 12 class Profile; |
14 | 13 |
15 // Target (in the target/action sense) of a bookmark folder button. | 14 // Target (in the target/action sense) of a bookmark folder button. |
16 // Since ObjC doesn't have multiple inheritance we use has-a instead | 15 // Since ObjC doesn't have multiple inheritance we use has-a instead |
17 // of is-a to share behavior between the BookmarkBarFolderController | 16 // of is-a to share behavior between the BookmarkBarFolderController |
18 // (NSWindowController) and the BookmarkBarController | 17 // (NSWindowController) and the BookmarkBarController |
19 // (NSViewController). | 18 // (NSViewController). |
20 // | 19 // |
21 // This class is unit tested in the context of a BookmarkBarController. | 20 // This class is unit tested in the context of a BookmarkBarController. |
22 @interface BookmarkFolderTarget : NSObject { | 21 @interface BookmarkFolderTarget : NSObject { |
(...skipping 15 matching lines...) Expand all Loading... |
38 forDragOfButton:(BookmarkButton*)button; | 37 forDragOfButton:(BookmarkButton*)button; |
39 | 38 |
40 @end | 39 @end |
41 | 40 |
42 // The (internal) |NSPasteboard| type string for bookmark button drags, used for | 41 // The (internal) |NSPasteboard| type string for bookmark button drags, used for |
43 // dragging buttons around the bookmark bar. The data for this type is just a | 42 // dragging buttons around the bookmark bar. The data for this type is just a |
44 // pointer to the |BookmarkButton| being dragged. | 43 // pointer to the |BookmarkButton| being dragged. |
45 extern NSString* kBookmarkButtonDragType; | 44 extern NSString* kBookmarkButtonDragType; |
46 | 45 |
47 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H
_ | 46 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H
_ |
OLD | NEW |