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

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

Issue 11498008: RenderWidget popup should be a NSWindow so it can go outside the main window. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed cancelChildPopups Created 8 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
(...skipping 12 matching lines...) Expand all
23 @interface BookmarkBarFolderController : 23 @interface BookmarkBarFolderController :
24 NSWindowController<BookmarkButtonDelegate, 24 NSWindowController<BookmarkButtonDelegate,
25 BookmarkButtonControllerProtocol, 25 BookmarkButtonControllerProtocol,
26 NSUserInterfaceValidations> { 26 NSUserInterfaceValidations> {
27 @private 27 @private
28 // The button whose click opened us. 28 // The button whose click opened us.
29 scoped_nsobject<BookmarkButton> parentButton_; 29 scoped_nsobject<BookmarkButton> parentButton_;
30 30
31 // Bookmark bar folder controller chains are torn down in two ways: 31 // Bookmark bar folder controller chains are torn down in two ways:
32 // 1. Clicking "outside" the folder (see use of 32 // 1. Clicking "outside" the folder (see use of
33 // CrApplicationEventHookProtocol in the bookmark bar controller). 33 // CrEventHookProtocol in the bookmark bar controller).
34 // 2. Engaging a different folder (via hover over or explicit click). 34 // 2. Engaging a different folder (via hover over or explicit click).
35 // 35 //
36 // In either case, the BookmarkButtonControllerProtocol method 36 // In either case, the BookmarkButtonControllerProtocol method
37 // closeAllBookmarkFolders gets called. For bookmark bar folder 37 // closeAllBookmarkFolders gets called. For bookmark bar folder
38 // controllers, this is passed up the chain so we begin with a top 38 // controllers, this is passed up the chain so we begin with a top
39 // level "close". 39 // level "close".
40 // When any bookmark folder window closes, it necessarily tells 40 // When any bookmark folder window closes, it necessarily tells
41 // subcontroller windows to close (down the chain), and autoreleases 41 // subcontroller windows to close (down the chain), and autoreleases
42 // the controller. (Must autorelease since the controller can still 42 // the controller. (Must autorelease since the controller can still
43 // get delegate events such as windowDidClose). 43 // get delegate events such as windowDidClose).
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 - (BOOL)canScrollDown; 222 - (BOOL)canScrollDown;
223 - (CGFloat)verticalScrollArrowHeight; 223 - (CGFloat)verticalScrollArrowHeight;
224 - (NSView*)visibleView; 224 - (NSView*)visibleView;
225 - (NSScrollView*)scrollView; 225 - (NSScrollView*)scrollView;
226 - (NSView*)folderView; 226 - (NSView*)folderView;
227 227
228 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 228 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
229 @end 229 @end
230 230
231 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 231 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698