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

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

Issue 11428149: Alternate NTP: Move bookmark bar to bottom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 // Updates the bookmark bar (from its current, possibly in-transition) state to 280 // Updates the bookmark bar (from its current, possibly in-transition) state to
281 // the one appropriate for the new conditions. 281 // the one appropriate for the new conditions.
282 - (void)updateAndShowNormalBar:(BOOL)showNormalBar 282 - (void)updateAndShowNormalBar:(BOOL)showNormalBar
283 showDetachedBar:(BOOL)showDetachedBar 283 showDetachedBar:(BOOL)showDetachedBar
284 withAnimation:(BOOL)animate; 284 withAnimation:(BOOL)animate;
285 285
286 // Update the visible state of the bookmark bar. 286 // Update the visible state of the bookmark bar.
287 - (void)updateVisibility; 287 - (void)updateVisibility;
288 288
289 // Hides or shows the bookmark bar depending on the current state.
290 - (void)updateHiddenState;
291
292 // Returns YES if the bookmark bar should be shown at the bottom of the content
293 // view when detached.
294 - (BOOL)shouldShowAtBottomWhenDetached;
295
289 // Turn on or off the bookmark bar and prevent or reallow its appearance. On 296 // Turn on or off the bookmark bar and prevent or reallow its appearance. On
290 // disable, toggle off if shown. On enable, show only if needed. App and popup 297 // disable, toggle off if shown. On enable, show only if needed. App and popup
291 // windows do not show a bookmark bar. 298 // windows do not show a bookmark bar.
292 - (void)setBookmarkBarEnabled:(BOOL)enabled; 299 - (void)setBookmarkBarEnabled:(BOOL)enabled;
293 300
294 // Returns the amount by which the toolbar above should be compressed. 301 // Returns the amount by which the toolbar above should be compressed.
295 - (CGFloat)getDesiredToolbarHeightCompression; 302 - (CGFloat)getDesiredToolbarHeightCompression;
296 303
297 // Gets the appropriate opacity for the toolbar's divider; 0 means that it 304 // Gets the appropriate opacity for the toolbar's divider; 0 means that it
298 // shouldn't be shown. 305 // shouldn't be shown.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 407
401 // The following are for testing purposes only and are not used internally. 408 // The following are for testing purposes only and are not used internally.
402 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; 409 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node;
403 - (NSMenu*)buttonContextMenu; 410 - (NSMenu*)buttonContextMenu;
404 - (void)setButtonContextMenu:(id)menu; 411 - (void)setButtonContextMenu:(id)menu;
405 // Set to YES in order to prevent animations. 412 // Set to YES in order to prevent animations.
406 - (void)setIgnoreAnimations:(BOOL)ignore; 413 - (void)setIgnoreAnimations:(BOOL)ignore;
407 @end 414 @end
408 415
409 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 416 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698