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

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

Issue 2013523005: [Mac][Material Design] Bring bookmark hover state, etc. up to spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo, fix chevron button highlight state. Created 4 years, 6 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_button.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
12 #import "ui/base/cocoa/tracking_area.h" 12 #import "ui/base/cocoa/tracking_area.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 @class BookmarkBarController; 16 @class BookmarkBarController;
17 @class BookmarkBarFolderView; 17 @class BookmarkBarFolderView;
18 @class BookmarkBarFolderHoverState; 18 @class BookmarkBarFolderHoverState;
19 @class BookmarkBarFolderWindow; 19 @class BookmarkBarFolderWindow;
20 @class BookmarkBarFolderWindowContentView; 20 @class BookmarkBarFolderWindowContentView;
21 @class BookmarkFolderTarget; 21 @class BookmarkFolderTarget;
22 22
23 namespace bookmarks {
24
25 // The padding between the top of the folder menu and the topmost button.
26 CGFloat BookmarkTopVerticalPadding();
27
28 // The padding between the bottom of the folder menu and the bottommost button.
29 CGFloat BookmarkBottomVerticalPadding();
30
31 } // bookmarks
32
23 // A controller for the pop-up windows from bookmark folder buttons 33 // A controller for the pop-up windows from bookmark folder buttons
24 // which look sort of like menus. 34 // which look sort of like menus.
25 @interface BookmarkBarFolderController : 35 @interface BookmarkBarFolderController :
26 NSWindowController<BookmarkButtonDelegate, 36 NSWindowController<BookmarkButtonDelegate,
27 BookmarkButtonControllerProtocol> { 37 BookmarkButtonControllerProtocol> {
28 @private 38 @private
29 // The button whose click opened us. 39 // The button whose click opened us.
30 base::scoped_nsobject<BookmarkButton> parentButton_; 40 base::scoped_nsobject<BookmarkButton> parentButton_;
31 41
32 // Bookmark bar folder controller chains are torn down in two ways: 42 // Bookmark bar folder controller chains are torn down in two ways:
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 - (NSView*)visibleView; 216 - (NSView*)visibleView;
207 - (NSScrollView*)scrollView; 217 - (NSScrollView*)scrollView;
208 - (NSView*)folderView; 218 - (NSView*)folderView;
209 219
210 - (IBAction)openBookmarkFolderFromButton:(id)sender; 220 - (IBAction)openBookmarkFolderFromButton:(id)sender;
211 221
212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 222 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
213 @end 223 @end
214 224
215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 225 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698