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