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

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

Issue 6612025: [Mac] Apply CrTrackingArea to the two other places where we get |-mouseMoved:| zombie messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 9 months 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 | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm » ('j') | 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) 2010 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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
13 #import "chrome/browser/ui/cocoa/tracking_area.h"
13 14
14 @class BookmarkBarController; 15 @class BookmarkBarController;
15 @class BookmarkBarFolderView; 16 @class BookmarkBarFolderView;
16 @class BookmarkFolderTarget; 17 @class BookmarkFolderTarget;
17 @class BookmarkBarFolderHoverState; 18 @class BookmarkBarFolderHoverState;
18 @class BookmarkBarFolderWindow; 19 @class BookmarkBarFolderWindow;
19 @class BookmarkBarFolderWindowContentView; 20 @class BookmarkBarFolderWindowContentView;
20 21
21 // A controller for the pop-up windows from bookmark folder buttons 22 // A controller for the pop-up windows from bookmark folder buttons
22 // which look sort of like menus. 23 // which look sort of like menus.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Logic for dealing with a click on a bookmark folder button. 112 // Logic for dealing with a click on a bookmark folder button.
112 scoped_nsobject<BookmarkFolderTarget> folderTarget_; 113 scoped_nsobject<BookmarkFolderTarget> folderTarget_;
113 114
114 // A controller for a pop-up bookmark folder window (custom menu). 115 // A controller for a pop-up bookmark folder window (custom menu).
115 // We (self) are the parentController_ for our folderController_. 116 // We (self) are the parentController_ for our folderController_.
116 // This is not a scoped_nsobject because it owns itself (when its 117 // This is not a scoped_nsobject because it owns itself (when its
117 // window closes the controller gets autoreleased). 118 // window closes the controller gets autoreleased).
118 BookmarkBarFolderController* folderController_; 119 BookmarkBarFolderController* folderController_;
119 120
120 // Implement basic menu scrolling through this tracking area. 121 // Implement basic menu scrolling through this tracking area.
121 scoped_nsobject<NSTrackingArea> scrollTrackingArea_; 122 ScopedCrTrackingArea scrollTrackingArea_;
122 123
123 // Timer to continue scrolling as needed. We own the timer but 124 // Timer to continue scrolling as needed. We own the timer but
124 // don't release it when done (we invalidate it). 125 // don't release it when done (we invalidate it).
125 NSTimer* scrollTimer_; 126 NSTimer* scrollTimer_;
126 127
127 // Precalculated sum of left and right edge padding of buttons in a 128 // Precalculated sum of left and right edge padding of buttons in a
128 // folder menu window. This is calculated from the widths of the main 129 // folder menu window. This is calculated from the widths of the main
129 // folder menu window and the scroll view within. 130 // folder menu window and the scroll view within.
130 CGFloat padding_; 131 CGFloat padding_;
131 132
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 - (BOOL)canScrollDown; 202 - (BOOL)canScrollDown;
202 - (CGFloat)verticalScrollArrowHeight; 203 - (CGFloat)verticalScrollArrowHeight;
203 - (NSView*)visibleView; 204 - (NSView*)visibleView;
204 - (NSScrollView*)scrollView; 205 - (NSScrollView*)scrollView;
205 - (NSView*)folderView; 206 - (NSView*)folderView;
206 207
207 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 208 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
208 @end 209 @end
209 210
210 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 211 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698