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

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

Issue 2827603005: Cater for the "double close" when clicking "Learn More" on auto-dismiss extension bubbles. (Closed)
Patch Set: resilience Created 3 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> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool Close() override; 48 bool Close() override;
49 int GetDialogButtons() const override; 49 int GetDialogButtons() const override;
50 int GetDefaultDialogButton() const override; 50 int GetDefaultDialogButton() const override;
51 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 51 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
52 void Init() override; 52 void Init() override;
53 53
54 // views::LinkListener: 54 // views::LinkListener:
55 void LinkClicked(views::Link* source, int event_flags) override; 55 void LinkClicked(views::Link* source, int event_flags) override;
56 56
57 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; 57 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
58 ToolbarActionsBarBubbleDelegate::CloseAction close_reason_; 58 bool delegate_notified_of_close_;
59 views::Label* item_list_; 59 views::Label* item_list_;
60 views::Link* link_; 60 views::Link* link_;
61 const bool anchored_to_action_; 61 const bool anchored_to_action_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews); 63 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_ 66 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698