OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_ | |
7 | |
8 #include "chrome/browser/ui/bookmarks/bookmark_bubble_observer.h" | |
9 | |
10 #include "base/mac/scoped_nsobject.h" | |
tapted
2015/08/25 01:13:21
nit: import
jackhou1
2015/08/25 04:32:29
Done.
| |
11 | |
12 @class BrowserWindowController; | |
13 | |
14 namespace bookmarks { | |
tapted
2015/08/25 01:13:21
nit: probably shouldn't be in namespace bookmarks
jackhou1
2015/08/25 04:32:29
Done.
| |
15 | |
16 // Manages toolbar visibility locking and bookmark button pulsing. | |
17 class BookmarkBubbleObserverCocoa : public bookmarks::BookmarkBubbleObserver { | |
18 public: | |
19 explicit BookmarkBubbleObserverCocoa(BrowserWindowController* controller); | |
20 ~BookmarkBubbleObserverCocoa() override; | |
21 | |
22 // bookmarks::BookmarkBubbleObserver. | |
23 void OnBookmarkBubbleShown(const BookmarkNode* node) override; | |
24 void OnBookmarkBubbleHidden() override; | |
25 | |
26 private: | |
27 BrowserWindowController* controller_; // Weak, owns us. | |
28 base::scoped_nsobject<NSObject> lockOwner_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleObserverCocoa); | |
31 }; | |
32 | |
33 } // namespace bookmarks | |
34 | |
35 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUBBLE_OBSERVER_COCOA_H_ | |
OLD | NEW |