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 12891006: bookmarks: Remove Profile getter accessor from BookmarkModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cocoa alignments Created 7 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
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"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
12 #import "ui/base/cocoa/tracking_area.h" 12 #import "ui/base/cocoa/tracking_area.h"
13 13
14 class Profile;
15
14 @class BookmarkBarController; 16 @class BookmarkBarController;
15 @class BookmarkBarFolderView; 17 @class BookmarkBarFolderView;
16 @class BookmarkBarFolderHoverState; 18 @class BookmarkBarFolderHoverState;
17 @class BookmarkBarFolderWindow; 19 @class BookmarkBarFolderWindow;
18 @class BookmarkBarFolderWindowContentView; 20 @class BookmarkBarFolderWindowContentView;
19 @class BookmarkFolderTarget; 21 @class BookmarkFolderTarget;
20 22
21 // A controller for the pop-up windows from bookmark folder buttons 23 // A controller for the pop-up windows from bookmark folder buttons
22 // which look sort of like menus. 24 // which look sort of like menus.
23 @interface BookmarkBarFolderController : 25 @interface BookmarkBarFolderController :
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 134
133 // 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
134 // incomplete animations do not cause valgrind complaints. 136 // incomplete animations do not cause valgrind complaints.
135 BOOL ignoreAnimations_; 137 BOOL ignoreAnimations_;
136 138
137 // The screen to which the menu should be restricted. 139 // The screen to which the menu should be restricted.
138 NSScreen* screen_; 140 NSScreen* screen_;
139 141
140 int selectedIndex_; 142 int selectedIndex_;
141 NSString* typedPrefix_; 143 NSString* typedPrefix_;
144
145 Profile* profile_;
142 } 146 }
143 147
144 // Designated initializer. 148 // Designated initializer.
145 - (id)initWithParentButton:(BookmarkButton*)button 149 - (id)initWithParentButton:(BookmarkButton*)button
146 parentController:(BookmarkBarFolderController*)parentController 150 parentController:(BookmarkBarFolderController*)parentController
147 barController:(BookmarkBarController*)barController; 151 barController:(BookmarkBarController*)barController
152 profile:(Profile*)profile;
148 153
149 // Return the parent button that owns the bookmark folder we represent. 154 // Return the parent button that owns the bookmark folder we represent.
150 - (BookmarkButton*)parentButton; 155 - (BookmarkButton*)parentButton;
151 156
152 // Text typed by user, for type-select and arrow key support. 157 // Text typed by user, for type-select and arrow key support.
153 // Returns YES if the menu should be closed now. 158 // Returns YES if the menu should be closed now.
154 - (BOOL)handleInputText:(NSString*)newText; 159 - (BOOL)handleInputText:(NSString*)newText;
155 160
156 // If you wanted to clear the type-select buffer. Currently only used 161 // If you wanted to clear the type-select buffer. Currently only used
157 // internally. 162 // internally.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 - (NSView*)visibleView; 206 - (NSView*)visibleView;
202 - (NSScrollView*)scrollView; 207 - (NSScrollView*)scrollView;
203 - (NSView*)folderView; 208 - (NSView*)folderView;
204 209
205 - (IBAction)openBookmarkFolderFromButton:(id)sender; 210 - (IBAction)openBookmarkFolderFromButton:(id)sender;
206 211
207 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
208 @end 213 @end
209 214
210 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ 215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698