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

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

Issue 976903003: Do not cache NSScreens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« 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) 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/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 CGFloat verticalScrollDelta_; 129 CGFloat verticalScrollDelta_;
130 130
131 // We need to know the size of the vertical scrolling arrows so we 131 // We need to know the size of the vertical scrolling arrows so we
132 // can obscure/unobscure them. 132 // can obscure/unobscure them.
133 CGFloat verticalScrollArrowHeight_; 133 CGFloat verticalScrollArrowHeight_;
134 134
135 // Set to YES to prevent any node animations. Useful for unit testing so that 135 // Set to YES to prevent any node animations. Useful for unit testing so that
136 // incomplete animations do not cause valgrind complaints. 136 // incomplete animations do not cause valgrind complaints.
137 BOOL ignoreAnimations_; 137 BOOL ignoreAnimations_;
138 138
139 // The screen to which the menu should be restricted.
140 NSScreen* screen_;
141
142 int selectedIndex_; 139 int selectedIndex_;
143 NSString* typedPrefix_; 140 NSString* typedPrefix_;
144 141
145 Profile* profile_; 142 Profile* profile_;
146 } 143 }
147 144
148 // Designated initializer. 145 // Designated initializer.
149 - (id)initWithParentButton:(BookmarkButton*)button 146 - (id)initWithParentButton:(BookmarkButton*)button
150 parentController:(BookmarkBarFolderController*)parentController 147 parentController:(BookmarkBarFolderController*)parentController
151 barController:(BookmarkBarController*)barController 148 barController:(BookmarkBarController*)barController
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 - (NSView*)visibleView; 203 - (NSView*)visibleView;
207 - (NSScrollView*)scrollView; 204 - (NSScrollView*)scrollView;
208 - (NSView*)folderView; 205 - (NSView*)folderView;
209 206
210 - (IBAction)openBookmarkFolderFromButton:(id)sender; 207 - (IBAction)openBookmarkFolderFromButton:(id)sender;
211 208
212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 209 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
213 @end 210 @end
214 211
215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 212 #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