Home | History | Annotate | Download | only in bookmarks
      1 // Copyright (c) 2010 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.
      4 
      5 #import <Cocoa/Cocoa.h>
      6 
      7 @protocol BookmarkButtonControllerProtocol;
      8 @class BookmarkBarFolderController;
      9 
     10 // Main content view for a bookmark bar folder "menu" window.  This is
     11 // logically similar to a BookmarkBarView but is oriented vertically.
     12 @interface BookmarkBarFolderView : NSView {
     13  @private
     14   BOOL inDrag_;  // Are we in the middle of a drag?
     15   BOOL dropIndicatorShown_;
     16   CGFloat dropIndicatorPosition_;  // y position
     17   // The following |controller_| is weak; used for testing only. See the imple-
     18   // mentation comment for - (id<BookmarkButtonControllerProtocol>)controller.
     19   BookmarkBarFolderController* controller_;
     20 }
     21 // Return the controller that owns this view.
     22 - (id<BookmarkButtonControllerProtocol>)controller;
     23 @end
     24 
     25 @interface BookmarkBarFolderView()  // TestingOrInternalAPI
     26 @property(assign) BOOL dropIndicatorShown;
     27 @property(readonly) CGFloat dropIndicatorPosition;
     28 - (void)setController:(id)controller;
     29 @end
     30