Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h

Issue 2394523002: cocoa browser: remove non-MD bookmark bar support (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BAR_FOLDER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
12 #import "ui/base/cocoa/tracking_area.h" 13 #import "ui/base/cocoa/tracking_area.h"
13 14
14 class Profile; 15 class Profile;
15 16
16 @class BookmarkBarController; 17 @class BookmarkBarController;
17 @class BookmarkBarFolderView; 18 @class BookmarkBarFolderView;
18 @class BookmarkBarFolderHoverState; 19 @class BookmarkBarFolderHoverState;
19 @class BookmarkBarFolderWindow; 20 @class BookmarkBarFolderWindow;
20 @class BookmarkBarFolderWindowContentView; 21 @class BookmarkBarFolderWindowContentView;
21 @class BookmarkFolderTarget; 22 @class BookmarkFolderTarget;
22 23
23 namespace bookmarks { 24 namespace bookmarks {
24 25
25 // The padding between the top of the folder menu and the topmost button. 26 // The padding between the top of the folder menu and the topmost button.
26 CGFloat BookmarkTopVerticalPadding(); 27 const CGFloat kBookmarkTopVerticalPadding = bookmarks::kBookmarkVerticalPadding;
27 28
28 // The padding between the bottom of the folder menu and the bottommost button. 29 // The padding between the bottom of the folder menu and the bottommost button.
29 CGFloat BookmarkBottomVerticalPadding(); 30 const CGFloat kBookmarkBottomVerticalPadding = 0.0;
30 31
31 } // bookmarks 32 } // bookmarks
32 33
33 // A controller for the pop-up windows from bookmark folder buttons 34 // A controller for the pop-up windows from bookmark folder buttons
34 // which look sort of like menus. 35 // which look sort of like menus.
35 @interface BookmarkBarFolderController : 36 @interface BookmarkBarFolderController :
36 NSWindowController<BookmarkButtonDelegate, 37 NSWindowController<BookmarkButtonDelegate,
37 BookmarkButtonControllerProtocol> { 38 BookmarkButtonControllerProtocol> {
38 @private 39 @private
39 // The button whose click opened us. 40 // The button whose click opened us.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 - (NSView*)visibleView; 217 - (NSView*)visibleView;
217 - (NSScrollView*)scrollView; 218 - (NSScrollView*)scrollView;
218 - (NSView*)folderView; 219 - (NSView*)folderView;
219 220
220 - (IBAction)openBookmarkFolderFromButton:(id)sender; 221 - (IBAction)openBookmarkFolderFromButton:(id)sender;
221 222
222 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 223 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
223 @end 224 @end
224 225
225 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 226 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698