Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h

Issue 2206693002: Improve settings override bubble to indicate policy installed extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 a link-style button. Optional.
37 NSButton* learnMoreButton_; 37 NSButton* link_;
38
39 // The extra view text as a 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698