| 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 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class Profile; | 32 class Profile; |
| 33 class TabContents; | 33 class TabContents; |
| 34 @class ToolbarController; | 34 @class ToolbarController; |
| 35 @protocol ViewResizer; | 35 @protocol ViewResizer; |
| 36 | 36 |
| 37 namespace bookmarks { | 37 namespace bookmarks { |
| 38 | 38 |
| 39 // Magic numbers from Cole | 39 // Magic numbers from Cole |
| 40 // TODO(jrg): create an objc-friendly version of bookmark_bar_constants.h? | 40 // TODO(jrg): create an objc-friendly version of bookmark_bar_constants.h? |
| 41 | 41 |
| 42 // Used as a maximum width for buttons on the bar. |
| 42 const CGFloat kDefaultBookmarkWidth = 150.0; | 43 const CGFloat kDefaultBookmarkWidth = 150.0; |
| 44 |
| 45 // TODO(jrg): http://crbug.com/36276 to get final sizes. |
| 46 // Used as a min/max width for buttons on menus (not on the bar). |
| 47 const CGFloat kBookmarkMenuButtonMinimumWidth = kDefaultBookmarkWidth; |
| 48 const CGFloat kBookmarkMenuButtonMaximumWidth = 1000.0; |
| 49 |
| 43 const CGFloat kBookmarkVerticalPadding = 2.0; | 50 const CGFloat kBookmarkVerticalPadding = 2.0; |
| 44 const CGFloat kBookmarkHorizontalPadding = 1.0; | 51 const CGFloat kBookmarkHorizontalPadding = 1.0; |
| 45 | 52 |
| 46 const CGFloat kNoBookmarksHorizontalOffset = 5.0; | 53 const CGFloat kNoBookmarksHorizontalOffset = 5.0; |
| 47 const CGFloat kNoBookmarksVerticalOffset = 6.0; | 54 const CGFloat kNoBookmarksVerticalOffset = 6.0; |
| 48 | 55 |
| 49 // (end magic numbers from Cole) | 56 // (end magic numbers from Cole) |
| 50 | 57 |
| 51 // Delay before opening a subfolder (and closing the previous one) | 58 // Delay before opening a subfolder (and closing the previous one) |
| 52 // when hovering over a folder button. | 59 // when hovering over a folder button. |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 322 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 316 - (BOOL)isEventAClickOutside:(NSEvent*)event; | 323 - (BOOL)isEventAClickOutside:(NSEvent*)event; |
| 317 @end | 324 @end |
| 318 | 325 |
| 319 // The (internal) |NSPasteboard| type string for bookmark button drags, used for | 326 // The (internal) |NSPasteboard| type string for bookmark button drags, used for |
| 320 // dragging buttons around the bookmark bar. The data for this type is just a | 327 // dragging buttons around the bookmark bar. The data for this type is just a |
| 321 // pointer to the |BookmarkButton| being dragged. | 328 // pointer to the |BookmarkButton| being dragged. |
| 322 extern NSString* kBookmarkButtonDragType; | 329 extern NSString* kBookmarkButtonDragType; |
| 323 | 330 |
| 324 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 331 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |