| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Controller (MVC) for the bookmark menu. | 5 // Controller (MVC) for the bookmark menu. |
| 6 // All bookmark menu item commands get directed here. | 6 // All bookmark menu item commands get directed here. |
| 7 // Unfortunately there is already a C++ class named BookmarkMenuController. | 7 // Unfortunately there is already a C++ class named BookmarkMenuController. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ | 9 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ |
| 10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ | 10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ |
| 11 | 11 |
| 12 #import <Cocoa/Cocoa.h> | 12 #import <Cocoa/Cocoa.h> |
| 13 | 13 |
| 14 #include "webkit/glue/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 15 | 15 |
| 16 class BookmarkNode; | 16 class BookmarkNode; |
| 17 class BookmarkMenuBridge; | 17 class BookmarkMenuBridge; |
| 18 | 18 |
| 19 @interface BookmarkMenuCocoaController : NSObject<NSMenuDelegate> { | 19 @interface BookmarkMenuCocoaController : NSObject<NSMenuDelegate> { |
| 20 @private | 20 @private |
| 21 BookmarkMenuBridge* bridge_; // weak; owns me | 21 BookmarkMenuBridge* bridge_; // weak; owns me |
| 22 NSMenu *menu_; | 22 NSMenu *menu_; |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 | 47 |
| 48 @interface BookmarkMenuCocoaController (ExposedForUnitTests) | 48 @interface BookmarkMenuCocoaController (ExposedForUnitTests) |
| 49 - (const BookmarkNode*)nodeForIdentifier:(int)identifier; | 49 - (const BookmarkNode*)nodeForIdentifier:(int)identifier; |
| 50 - (void)openURLForNode:(const BookmarkNode*)node; | 50 - (void)openURLForNode:(const BookmarkNode*)node; |
| 51 - (void)openAll:(NSInteger)tag | 51 - (void)openAll:(NSInteger)tag |
| 52 withDisposition:(WindowOpenDisposition)disposition; | 52 withDisposition:(WindowOpenDisposition)disposition; |
| 53 @end // BookmarkMenuCocoaController (ExposedForUnitTests) | 53 @end // BookmarkMenuCocoaController (ExposedForUnitTests) |
| 54 | 54 |
| 55 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ | 55 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_ |
| OLD | NEW |