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

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

Issue 2200303004: [Mac][Material Design] Adjust bookmark spacing and folder menu drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests, changes for icon-only items. Created 4 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // Window for a bookmark folder "menu". This menu pops up when you 10 // Window for a bookmark folder "menu". This menu pops up when you
11 // click on a bookmark button that represents a folder of bookmarks. 11 // click on a bookmark button that represents a folder of bookmarks.
12 // This window is borderless but has a shadow, at least initially. 12 // This window is borderless but has a shadow, at least initially.
13 // Once the down scroll arrow is shown, the shadow is turned off and 13 // Once the down scroll arrow is shown, the shadow is turned off and
14 // a secondary window is added which is sized to match the visible 14 // a secondary window is added which is sized to match the visible
15 // area of the menu and which provides the shadow. 15 // area of the menu and which provides the shadow.
16 @interface BookmarkBarFolderWindow : NSWindow 16 @interface BookmarkBarFolderWindow : NSWindow
17 @end 17 @end
18 18
19 // Content view for the above window. "Stock" other than the drawing 19 // Content view for the above window. "Stock" other than the drawing
20 // of rounded corners. Only used in the nib. 20 // of rounded corners. Only used in the nib.
21 @interface BookmarkBarFolderWindowContentView : NSView 21 @interface BookmarkBarFolderWindowContentView : NSView
22 // Returns the folder window's background color (Material Design only).
23 + (NSColor*)backgroundColor;
22 @end 24 @end
23 25
24 // Scroll view that contains the main view (where the buttons go). 26 // Scroll view that contains the main view (where the buttons go).
25 @interface BookmarkBarFolderWindowScrollView : NSScrollView 27 @interface BookmarkBarFolderWindowScrollView : NSScrollView
26 @end 28 @end
27 29
28 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_ 30 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698