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

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

Issue 2435593008: Cocoa: Fix a constraint violation when navigating away from a detached bookmark bar. (Closed)
Patch Set: redundant Created 4 years, 2 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
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 <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // windows do not show a bookmark bar. 355 // windows do not show a bookmark bar.
356 - (void)setBookmarkBarEnabled:(BOOL)enabled; 356 - (void)setBookmarkBarEnabled:(BOOL)enabled;
357 357
358 // Returns the amount by which the toolbar above should be compressed. 358 // Returns the amount by which the toolbar above should be compressed.
359 - (CGFloat)getDesiredToolbarHeightCompression; 359 - (CGFloat)getDesiredToolbarHeightCompression;
360 360
361 // Gets the appropriate opacity for the toolbar's divider; 0 means that it 361 // Gets the appropriate opacity for the toolbar's divider; 0 means that it
362 // shouldn't be shown. 362 // shouldn't be shown.
363 - (CGFloat)toolbarDividerOpacity; 363 - (CGFloat)toolbarDividerOpacity;
364 364
365 // Updates the sizes and positions of the subviews. 365 // Set the size of the view and perform layout.
366 // TODO(viettrungluu): I'm not convinced this should be public, but I currently 366 - (void)layoutToFrame:(NSRect)frame;
367 // need it for animations. Try not to propagate its use.
368 - (void)layoutSubviews;
369 367
370 // Called by our view when it is moved to a window. 368 // Called by our view when it is moved to a window.
371 - (void)viewDidMoveToWindow; 369 - (void)viewDidMoveToWindow;
372 370
373 // Provide a favicon for a bookmark node, specifying whether or not it's for 371 // Provide a favicon for a bookmark node, specifying whether or not it's for
374 // use with a dark window theme. May return nil. 372 // use with a dark window theme. May return nil.
375 - (NSImage*)faviconForNode:(const bookmarks::BookmarkNode*)node 373 - (NSImage*)faviconForNode:(const bookmarks::BookmarkNode*)node
376 forADarkTheme:(BOOL)forADarkTheme; 374 forADarkTheme:(BOOL)forADarkTheme;
377 375
378 // Used for situations where the bookmark bar folder menus should no longer 376 // Used for situations where the bookmark bar folder menus should no longer
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 458 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
461 - (BOOL)isEventAnExitEvent:(NSEvent*)event; 459 - (BOOL)isEventAnExitEvent:(NSEvent*)event;
462 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 460 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
463 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; 461 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node;
464 462
465 // The following are for testing purposes only and are not used internally. 463 // The following are for testing purposes only and are not used internally.
466 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; 464 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node;
467 @end 465 @end
468 466
469 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 467 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698