1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_
8 #include "chrome/browser/ui/bookmarks/bookmark_bubble_observer.h"
10 #import "base/mac/scoped_nsobject.h"
12 @
class BrowserWindowController
;
14 // Manages toolbar visibility locking and bookmark button pulsing.
15 class BookmarkBubbleObserverCocoa
: public bookmarks::BookmarkBubbleObserver
{
17 explicit BookmarkBubbleObserverCocoa(BrowserWindowController
* controller
);
18 ~BookmarkBubbleObserverCocoa() override
;
20 // bookmarks::BookmarkBubbleObserver.
21 void OnBookmarkBubbleShown(const bookmarks::BookmarkNode
* node
) override
;
22 void OnBookmarkBubbleHidden() override
;
25 BrowserWindowController
* controller_
; // Weak, owns us.
26 base::scoped_nsobject
<NSObject
> lockOwner_
;
28 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleObserverCocoa
);
31 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_