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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #include <map> | 10 #include <map> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 BOOL watchingForExitEvent_; | 193 BOOL watchingForExitEvent_; |
194 | 194 |
195 IBOutlet BookmarkBarView* buttonView_; // Contains 'no items' text fields. | 195 IBOutlet BookmarkBarView* buttonView_; // Contains 'no items' text fields. |
196 IBOutlet BookmarkButton* offTheSideButton_; // aka the chevron. | 196 IBOutlet BookmarkButton* offTheSideButton_; // aka the chevron. |
197 IBOutlet NSMenu* buttonContextMenu_; | 197 IBOutlet NSMenu* buttonContextMenu_; |
198 | 198 |
199 NSRect originalNoItemsRect_; // Original, pre-resized field rect. | 199 NSRect originalNoItemsRect_; // Original, pre-resized field rect. |
200 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect. | 200 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect. |
201 | 201 |
202 // "Other bookmarks" button on the right side. | 202 // "Other bookmarks" button on the right side. |
203 scoped_nsobject<NSButton> otherBookmarksButton_; | 203 scoped_nsobject<BookmarkButton> otherBookmarksButton_; |
204 | 204 |
205 // We have a special menu for folder buttons. This starts as a copy | 205 // We have a special menu for folder buttons. This starts as a copy |
206 // of the bar menu. | 206 // of the bar menu. |
207 scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_; | 207 scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_; |
208 | 208 |
209 // When doing a drag, this is folder button "hovered over" which we | 209 // When doing a drag, this is folder button "hovered over" which we |
210 // may want to open after a short delay. There are cases where a | 210 // may want to open after a short delay. There are cases where a |
211 // mouse-enter can open a folder (e.g. if the menus are "active") | 211 // mouse-enter can open a folder (e.g. if the menus are "active") |
212 // but that doesn't use this variable or need a delay so "hover" is | 212 // but that doesn't use this variable or need a delay so "hover" is |
213 // the wrong term. | 213 // the wrong term. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 // The following are for testing purposes only and are not used internally. | 368 // The following are for testing purposes only and are not used internally. |
369 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 369 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
370 - (NSMenu*)buttonContextMenu; | 370 - (NSMenu*)buttonContextMenu; |
371 - (void)setButtonContextMenu:(id)menu; | 371 - (void)setButtonContextMenu:(id)menu; |
372 // Set to YES in order to prevent animations. | 372 // Set to YES in order to prevent animations. |
373 - (void)setIgnoreAnimations:(BOOL)ignore; | 373 - (void)setIgnoreAnimations:(BOOL)ignore; |
374 @end | 374 @end |
375 | 375 |
376 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 376 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
OLD | NEW |