| 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_
|
|
|