Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

bookmark_bar_view.h

// 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>

@class BookmarkBarController;

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

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

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

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

#endif  // CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_

Generated by  Doxygen 1.6.0   Back to index