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

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

Issue 5694001: Rework how bookmark bar folder menus and submenus are layed out when scrollin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #import "base/mac/cocoa_protocols.h" 10 #import "base/mac/cocoa_protocols.h"
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 12
13 13
14 // Window for a bookmark folder "menu". This menu pops up when you 14 // Window for a bookmark folder "menu". This menu pops up when you
15 // click on a bookmark button that represents a folder of bookmarks. 15 // click on a bookmark button that represents a folder of bookmarks.
16 // This window is borderless. 16 // This window is borderless but has a shadow, at least initially.
17 // Once the down scroll arrow is shown, the shadow is turned off and
18 // a secondary window is added which is sized to match the visible
19 // area of the menu and which provides the shadow.
17 @interface BookmarkBarFolderWindow : NSWindow 20 @interface BookmarkBarFolderWindow : NSWindow
18 @end 21 @end
19 22
20 // Content view for the above window. "Stock" other than the drawing 23 // Content view for the above window. "Stock" other than the drawing
21 // of rounded corners. Only used in the nib. 24 // of rounded corners. Only used in the nib.
22 @interface BookmarkBarFolderWindowContentView : NSView { 25 @interface BookmarkBarFolderWindowContentView : NSView
23 // Arrows to show ability to scroll up and down as needed.
24 scoped_nsobject<NSImage> arrowUpImage_;
25 scoped_nsobject<NSImage> arrowDownImage_;
26 }
27 @end 26 @end
28 27
29 // Scroll view that contains the main view (where the buttons go). 28 // Scroll view that contains the main view (where the buttons go).
30 @interface BookmarkBarFolderWindowScrollView : NSScrollView 29 @interface BookmarkBarFolderWindowScrollView : NSScrollView
31 @end 30 @end
32 31
33 32
34 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698