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_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 12 |
| 13 class ToolbarActionsBarBubbleDelegate; |
| 14 |
| 15 // A bubble that hangs off the toolbar actions bar, with a minimum of a heading, |
| 16 // some text content, and an "action" button. The bubble can also, optionally, |
| 17 // have a learn more link and/or a dismiss button. |
| 18 @interface ToolbarActionsBarBubbleMac : BaseBubbleController { |
| 19 // Whether or not the bubble has been acknowledged. |
| 20 BOOL acknowledged_; |
| 21 |
| 22 // The action button. The exact meaning of this is dependent on the bubble. |
| 23 // Required. |
| 24 NSButton* actionButton_; |
| 25 |
| 26 // The dismiss button. Optional. |
| 27 NSButton* dismissButton_; |
| 28 |
| 29 // The "learn more" link-style button. Optional. |
| 30 NSButton* learnMoreButton_; |
| 31 |
| 32 // This bubble's delegate. |
| 33 scoped_ptr<ToolbarActionsBarBubbleDelegate> delegate_; |
| 34 } |
| 35 |
| 36 // Creates the bubble for a parent window but does not show it. |
| 37 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 38 anchorPoint:(NSPoint)anchorPoint |
| 39 delegate:(scoped_ptr<ToolbarActionsBarBubbleDelegate>) |
| 40 delegate; |
| 41 |
| 42 @property(readonly, nonatomic) NSButton* actionButton; |
| 43 @property(readonly, nonatomic) NSButton* dismissButton; |
| 44 @property(readonly, nonatomic) NSButton* learnMoreButton; |
| 45 |
| 46 @end |
| 47 |
| 48 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ |
OLD | NEW |