| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // BookmarkNodes have a 64bit id. NSMenuItems have a 32bit tag used | 56 // BookmarkNodes have a 64bit id. NSMenuItems have a 32bit tag used |
| 57 // to represent the bookmark node they refer to. This map provides | 57 // to represent the bookmark node they refer to. This map provides |
| 58 // a mapping from one to the other, so we can properly identify the | 58 // a mapping from one to the other, so we can properly identify the |
| 59 // node from the item. When adding items in, we start with seedId_. | 59 // node from the item. When adding items in, we start with seedId_. |
| 60 int32 seedId_; | 60 int32 seedId_; |
| 61 std::map<int32,int64> menuTagMap_; | 61 std::map<int32,int64> menuTagMap_; |
| 62 | 62 |
| 63 // Our bookmark buttons, ordered from L-->R. | 63 // Our bookmark buttons, ordered from L-->R. |
| 64 scoped_nsobject<NSMutableArray> buttons_; | 64 scoped_nsobject<NSMutableArray> buttons_; |
| 65 | 65 |
| 66 // The folder image so we can use one copy for all buttons |
| 67 scoped_nsobject<NSImage> folderImage_; |
| 68 |
| 66 // If the bar is disabled, we hide it and ignore show/hide commands. | 69 // If the bar is disabled, we hide it and ignore show/hide commands. |
| 67 // Set when using fullscreen mode. | 70 // Set when using fullscreen mode. |
| 68 BOOL barIsEnabled_; | 71 BOOL barIsEnabled_; |
| 69 | 72 |
| 70 // Bridge from Chrome-style C++ notifications (e.g. derived from | 73 // Bridge from Chrome-style C++ notifications (e.g. derived from |
| 71 // BookmarkModelObserver) | 74 // BookmarkModelObserver) |
| 72 scoped_ptr<BookmarkBarBridge> bridge_; | 75 scoped_ptr<BookmarkBarBridge> bridge_; |
| 73 | 76 |
| 74 // Delegate that is alerted about whether it should be compressed because | 77 // Delegate that is alerted about whether it should be compressed because |
| 75 // it's right next to us. | 78 // it's right next to us. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 - (void)frameDidChange; | 182 - (void)frameDidChange; |
| 180 - (BOOL)offTheSideButtonIsHidden; | 183 - (BOOL)offTheSideButtonIsHidden; |
| 181 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 184 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
| 182 - (int64)nodeIdFromMenuTag:(int32)tag; | 185 - (int64)nodeIdFromMenuTag:(int32)tag; |
| 183 - (int32)menuTagFromNodeId:(int64)menuid; | 186 - (int32)menuTagFromNodeId:(int64)menuid; |
| 184 - (void)buildOffTheSideMenu; | 187 - (void)buildOffTheSideMenu; |
| 185 - (NSMenu*)offTheSideMenu; | 188 - (NSMenu*)offTheSideMenu; |
| 186 @end | 189 @end |
| 187 | 190 |
| 188 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 191 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |