summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_view.h
blob: 6f2a7acd7ee6fbe51d4ea16d5b256b55d96153df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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.
//
// A simple custom NSView for the bookmark bar used to prevent clicking and
// dragging from moving the browser window.

#ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_
#define CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_

#import <Cocoa/Cocoa.h>

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

@class BookmarkBarController;

@interface BookmarkBarView : BackgroundGradientView {
 @private
  BOOL dropIndicatorShown_;
  CGFloat dropIndicatorPosition_;  // x position

  IBOutlet BookmarkBarController* controller_;
  IBOutlet NSTextField* noItemTextfield_;
  IBOutlet NSButton* importBookmarksButton_;
  NSView* noItemContainer_;
}
- (NSTextField*)noItemTextfield;
- (NSButton*)importBookmarksButton;
- (BookmarkBarController*)controller;

@property (nonatomic, assign) IBOutlet NSView* noItemContainer;
@end

@interface BookmarkBarView()  // TestingOrInternalAPI
@property (nonatomic, readonly) BOOL dropIndicatorShown;
@property (nonatomic, readonly) CGFloat dropIndicatorPosition;
- (void)setController:(id)controller;
@end

#endif  // CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_