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

Side by Side Diff: chrome/browser/cocoa/bookmark_bar_controller.h

Issue 2976008: Bar (Closed)
Patch Set: '' Created 10 years, 4 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/cocoa/browser_window_controller.h » ('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) 2010 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_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <map> 10 #include <map>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // A controller for the bookmark bar in the browser window. Handles showing 126 // A controller for the bookmark bar in the browser window. Handles showing
127 // and hiding based on the preference in the given profile. 127 // and hiding based on the preference in the given profile.
128 @interface BookmarkBarController : 128 @interface BookmarkBarController :
129 NSViewController<BookmarkBarState, 129 NSViewController<BookmarkBarState,
130 BookmarkBarToolbarViewController, 130 BookmarkBarToolbarViewController,
131 BookmarkButtonDelegate, 131 BookmarkButtonDelegate,
132 BookmarkButtonControllerProtocol, 132 BookmarkButtonControllerProtocol,
133 CrApplicationEventHookProtocol, 133 CrApplicationEventHookProtocol,
134 NSUserInterfaceValidations> { 134 NSUserInterfaceValidations> {
135 @private 135 @public // FIXME
136 // The visual state of the bookmark bar. If an animation is running, this is 136 // The visual state of the bookmark bar. If an animation is running, this is
137 // set to the "destination" and |lastVisualState_| is set to the "original" 137 // set to the "destination" and |lastVisualState_| is set to the "original"
138 // state. This is set to |kInvalidState| on initialization (when the 138 // state. This is set to |kInvalidState| on initialization (when the
139 // appropriate state is not yet known). 139 // appropriate state is not yet known).
140 bookmarks::VisualState visualState_; 140 bookmarks::VisualState visualState_;
141 141
142 // The "original" state of the bookmark bar if an animation is running, 142 // The "original" state of the bookmark bar if an animation is running,
143 // otherwise it should be |kInvalidState|. 143 // otherwise it should be |kInvalidState|.
144 bookmarks::VisualState lastVisualState_; 144 bookmarks::VisualState lastVisualState_;
145 145
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 // The following are for testing purposes only and are not used internally. 368 // The following are for testing purposes only and are not used internally.
369 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; 369 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node;
370 - (NSMenu*)buttonContextMenu; 370 - (NSMenu*)buttonContextMenu;
371 - (void)setButtonContextMenu:(id)menu; 371 - (void)setButtonContextMenu:(id)menu;
372 // Set to YES in order to prevent animations. 372 // Set to YES in order to prevent animations.
373 - (void)setIgnoreAnimations:(BOOL)ignore; 373 - (void)setIgnoreAnimations:(BOOL)ignore;
374 @end 374 @end
375 375
376 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 376 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698