Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / extensions / extension_toolbar_icon_surfacing_bubble_views.h
blobd1326dfd00e402a9c40738944f44470ddd47302f
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 {
16 public:
17 ExtensionToolbarIconSurfacingBubble(
18 views::View* anchor_view,
19 ToolbarActionsBarBubbleDelegate* delegate);
20 ~ExtensionToolbarIconSurfacingBubble() override;
22 private:
23 void Init() 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"
31 // button.
32 bool acknowledged_;
34 DISALLOW_COPY_AND_ASSIGN(ExtensionToolbarIconSurfacingBubble);
37 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_VIEWS_H_