| OLD | NEW |
| 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_ |
| OLD | NEW |