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

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

Issue 1086973004: [Extensions Mac] Implement developer mode warning on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finnur's Created 5 years, 8 months 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698