summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm
blob: e40607b3064a101a0c1549a4ed7d02267da49e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "chrome/browser/cocoa/bookmark_bar_toolbar_view.h"

#import "chrome/browser/cocoa/bookmark_bar_controller.h"

@implementation BookmarkBarToolbarView

- (void)drawRect:(NSRect)rect {
  if ([controller_ drawAsFloatingBar]) {
    // TODO(erg): Deal with themes. http://crbug.com/17625
    [[NSColor colorWithDeviceRed:1.0 green:1.0 blue:1.0 alpha:1.0] set];
    NSRectFill(rect);
  } else {
    [super drawRect:rect];
  }
}

@end  // @implementation BookmarkBarToolbarView