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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_VIEWS_H_
8 #include "base/macros.h"
9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/controls/button/button.h"
12 class ToolbarActionsBarBubbleDelegate
;
14 class ExtensionToolbarIconSurfacingBubble
: public views::BubbleDelegateView
,
15 public views::ButtonListener
{
17 ExtensionToolbarIconSurfacingBubble(
18 views::View
* anchor_view
,
19 ToolbarActionsBarBubbleDelegate
* delegate
);
20 ~ExtensionToolbarIconSurfacingBubble() override
;
24 void OnWidgetDestroying(views::Widget
* widget
) override
;
26 void ButtonPressed(views::Button
* sender
, const ui::Event
& event
) override
;
28 ToolbarActionsBarBubbleDelegate
* delegate_
;
30 // Whether or not the user acknowledged the bubble by clicking the "ok"
34 DISALLOW_COPY_AND_ASSIGN(ExtensionToolbarIconSurfacingBubble
);
37 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_VIEWS_H_