OLD | NEW |
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 #include "base/mac/scoped_nsobject.h" | |
10 | |
11 | 9 |
12 // 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 |
13 // click on a bookmark button that represents a folder of bookmarks. | 11 // click on a bookmark button that represents a folder of bookmarks. |
14 // This window is borderless but has a shadow, at least initially. | 12 // This window is borderless but has a shadow, at least initially. |
15 // 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 |
16 // 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 |
17 // area of the menu and which provides the shadow. | 15 // area of the menu and which provides the shadow. |
18 @interface BookmarkBarFolderWindow : NSWindow | 16 @interface BookmarkBarFolderWindow : NSWindow |
19 @end | 17 @end |
20 | 18 |
21 // Content view for the above window. "Stock" other than the drawing | 19 // Content view for the above window. "Stock" other than the drawing |
22 // of rounded corners. Only used in the nib. | 20 // of rounded corners. Only used in the nib. |
23 @interface BookmarkBarFolderWindowContentView : NSView | 21 @interface BookmarkBarFolderWindowContentView : NSView |
24 @end | 22 @end |
25 | 23 |
26 // Scroll view that contains the main view (where the buttons go). | 24 // Scroll view that contains the main view (where the buttons go). |
27 @interface BookmarkBarFolderWindowScrollView : NSScrollView | 25 @interface BookmarkBarFolderWindowScrollView : NSScrollView |
28 @end | 26 @end |
29 | 27 |
30 | |
31 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_ | 28 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_WINDOW_H_ |
OLD | NEW |