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

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

Issue 2084713002: Don't set a default action for ToolbarActionsBarBubbles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 const views::Link* learn_more_button() const { return learn_more_button_; } 36 const views::Link* learn_more_button() const { return learn_more_button_; }
37 37
38 private: 38 private:
39 // views::BubbleDialogDelegateView: 39 // views::BubbleDialogDelegateView:
40 base::string16 GetWindowTitle() const override; 40 base::string16 GetWindowTitle() const override;
41 views::View* CreateExtraView() override; 41 views::View* CreateExtraView() override;
42 bool Cancel() override; 42 bool Cancel() override;
43 bool Accept() override; 43 bool Accept() override;
44 bool Close() override; 44 bool Close() override;
45 int GetDialogButtons() const override; 45 int GetDialogButtons() const override;
46 int GetDefaultDialogButton() const override;
46 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 47 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
47 void Init() override; 48 void Init() override;
48 49
49 // views::LinkListener: 50 // views::LinkListener:
50 void LinkClicked(views::Link* source, int event_flags) override; 51 void LinkClicked(views::Link* source, int event_flags) override;
51 52
52 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; 53 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
53 views::Label* item_list_; 54 views::Label* item_list_;
54 views::Link* learn_more_button_; 55 views::Link* learn_more_button_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews); 57 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews);
57 }; 58 };
58 59
59 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_ 60 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698