mac: Redraw bookmark bar view buttons when the bookmark bar changes size.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / bookmarks / bookmark_bar_folder_button_cell.mm
blob90751705c37d88ee3fdd62c49354c5f599de5aa3
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
3 // found in the LICENSE file.
5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h"
7 using bookmarks::BookmarkNode;
9 @implementation BookmarkBarFolderButtonCell
11 + (id)buttonCellForNode:(const BookmarkNode*)node
12                    text:(NSString*)text
13                   image:(NSImage*)image
14          menuController:(BookmarkContextMenuCocoaController*)menuController {
15   id buttonCell =
16       [[[BookmarkBarFolderButtonCell alloc] initForNode:node
17                                                    text:text
18                                                   image:image
19                                          menuController:menuController]
20        autorelease];
21   return buttonCell;
24 - (BOOL)isFolderButtonCell {
25   return YES;
28 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated {
31 @end