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

Unified 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: Avi'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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h
diff --git a/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..eef920df13a9df13677ebb6904e74dce196d7ce7
--- /dev/null
+++ b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h
@@ -0,0 +1,48 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_
+#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_ptr.h"
+#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
+
+class ToolbarActionsBarBubbleDelegate;
+
+// A bubble that hangs off the toolbar actions bar, with a minimum of a heading,
+// some text content, and an "action" button. The bubble can also, optionally,
+// have a learn more link and/or a dismiss button.
+@interface ToolbarActionsBarBubbleMac : BaseBubbleController {
+ // Whether or not the bubble has been acknowledged.
+ BOOL acknowledged_;
+
+ // The action button. The exact meaning of this is dependent on the bubble.
+ // Required.
+ NSButton* actionButton_;
+
+ // The dismiss button. Optional.
+ NSButton* dismissButton_;
+
+ // The "learn more" link-style button. Optional.
+ NSButton* learnMoreButton_;
+
+ // This bubble's delegate.
+ scoped_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
+}
+
+// Creates the bubble for a parent window but does not show it.
+- (id)initWithParentWindow:(NSWindow*)parentWindow
+ anchorPoint:(NSPoint)anchorPoint
+ delegate:(scoped_ptr<ToolbarActionsBarBubbleDelegate>)
+ delegate;
+
+@property(readonly, nonatomic) NSButton* actionButton;
+@property(readonly, nonatomic) NSButton* dismissButton;
+@property(readonly, nonatomic) NSButton* learnMoreButton;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_TOOLBAR_ACTIONS_BAR_BUBBLE_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698