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

Side by Side Diff: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h

Issue 1858773006: [Extensions UI] Use the ExtensionMessageBubbleBridge for Views platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "ui/views/bubble/bubble_delegate.h" 11 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/controls/button/button.h" 12 #include "ui/views/controls/button/button.h"
11 13
12 class Profile; 14 class Profile;
13 class ToolbarActionsBarBubbleDelegate; 15 class ToolbarActionsBarBubbleDelegate;
14 class ToolbarActionsBarBubbleViewsUnitTest; 16 class ToolbarActionsBarBubbleViewsUnitTest;
15 17
16 namespace views { 18 namespace views {
17 class Label; 19 class Label;
(...skipping 18 matching lines...) Expand all
36 const views::LabelButton* dismiss_button() const { return dismiss_button_; } 38 const views::LabelButton* dismiss_button() const { return dismiss_button_; }
37 39
38 private: 40 private:
39 // views::BubbleDelegateView: 41 // views::BubbleDelegateView:
40 void Init() override; 42 void Init() override;
41 void OnWidgetDestroying(views::Widget* widget) override; 43 void OnWidgetDestroying(views::Widget* widget) override;
42 44
43 // views::ButtonListener: 45 // views::ButtonListener:
44 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 46 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
45 47
48 views::View* anchor_view_;
49
46 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; 50 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
47 51
48 views::Label* heading_label_; 52 views::Label* heading_label_;
49 views::Label* content_label_; 53 views::Label* content_label_;
50 54
51 views::LabelButton* dismiss_button_; 55 views::LabelButton* dismiss_button_;
52 views::LabelButton* action_button_; 56 views::LabelButton* action_button_;
53 57
54 // Whether or not the user acknowledged the bubble by clicking the "ok" 58 // Whether or not the user acknowledged the bubble by clicking the "ok"
55 // button. 59 // button.
56 bool acknowledged_; 60 bool acknowledged_;
57 61
58 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews); 62 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews);
59 }; 63 };
60 64
61 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_ 65 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698