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

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

Issue 11667005: Drop event hooking in CrApplication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 // which look sort of like menus. 22 // which look sort of like menus.
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 the NSEvent local event
33 // CrApplicationEventHookProtocol in the bookmark bar controller). 33 // monitor 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 - (BOOL)canScrollDown; 225 - (BOOL)canScrollDown;
226 - (CGFloat)verticalScrollArrowHeight; 226 - (CGFloat)verticalScrollArrowHeight;
227 - (NSView*)visibleView; 227 - (NSView*)visibleView;
228 - (NSScrollView*)scrollView; 228 - (NSScrollView*)scrollView;
229 - (NSView*)folderView; 229 - (NSView*)folderView;
230 230
231 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 231 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
232 @end 232 @end
233 233
234 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 234 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698