| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |