Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ | 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_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 // The action button. The exact meaning of this is dependent on the bubble. | 26 // The action button. The exact meaning of this is dependent on the bubble. |
| 27 // Required. | 27 // Required. |
| 28 NSButton* actionButton_; | 28 NSButton* actionButton_; |
| 29 | 29 |
| 30 // The list of items to display. Optional. | 30 // The list of items to display. Optional. |
| 31 NSTextField* itemList_; | 31 NSTextField* itemList_; |
| 32 | 32 |
| 33 // The dismiss button. Optional. | 33 // The dismiss button. Optional. |
| 34 NSButton* dismissButton_; | 34 NSButton* dismissButton_; |
| 35 | 35 |
| 36 // The "learn more" link-style button. Optional. | 36 // The extra view text as link-style button. Optional. |
|
Devlin
2016/10/20 00:23:42
nit: need proper grammar in comments, so this shou
catmullings
2016/10/21 03:49:28
Done.
| |
| 37 NSButton* learnMoreButton_; | 37 NSButton* link_; |
| 38 | |
| 39 // The extra view text as label. Optional. | |
| 40 NSTextField* label_; | |
| 41 | |
| 42 // The extra view icon that can accompany the extra view text. Optional. | |
| 43 NSImageView* iconView_; | |
| 38 | 44 |
| 39 // This bubble's delegate. | 45 // This bubble's delegate. |
| 40 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; | 46 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; |
| 41 } | 47 } |
| 42 | 48 |
| 43 // Creates the bubble for a parent window but does not show it. | 49 // Creates the bubble for a parent window but does not show it. |
| 44 - (id)initWithParentWindow:(NSWindow*)parentWindow | 50 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 45 anchorPoint:(NSPoint)anchorPoint | 51 anchorPoint:(NSPoint)anchorPoint |
| 46 anchoredToAction:(BOOL)anchoredToAction | 52 anchoredToAction:(BOOL)anchoredToAction |
| 47 delegate:(std::unique_ptr<ToolbarActionsBarBubbleDelegate>) | 53 delegate:(std::unique_ptr<ToolbarActionsBarBubbleDelegate>) |
| 48 delegate; | 54 delegate; |
| 49 | 55 |
| 50 // Toggles animation for testing purposes. | 56 // Toggles animation for testing purposes. |
| 51 + (void)setAnimationEnabledForTesting:(BOOL)enabled; | 57 + (void)setAnimationEnabledForTesting:(BOOL)enabled; |
| 52 | 58 |
| 53 @property(readonly, nonatomic) NSButton* actionButton; | 59 @property(readonly, nonatomic) NSButton* actionButton; |
| 54 @property(readonly, nonatomic) NSTextField* itemList; | 60 @property(readonly, nonatomic) NSTextField* itemList; |
| 55 @property(readonly, nonatomic) NSButton* dismissButton; | 61 @property(readonly, nonatomic) NSButton* dismissButton; |
| 56 @property(readonly, nonatomic) NSButton* learnMoreButton; | 62 @property(readonly, nonatomic) NSButton* link; |
| 63 @property(readonly, nonatomic) NSTextField* label; | |
| 64 @property(readonly, nonatomic) NSImageView* iconView; | |
| 57 | 65 |
| 58 @end | 66 @end |
| 59 | 67 |
| 60 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ | 68 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_ |
| OLD | NEW |