| 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" |
| 11 #include "ui/views/bubble/bubble_dialog_delegate.h" | 11 #include "ui/views/bubble/bubble_dialog_delegate.h" |
| 12 #include "ui/views/controls/button/button.h" | 12 #include "ui/views/controls/button/button.h" |
| 13 #include "ui/views/controls/link_listener.h" | 13 #include "ui/views/controls/link_listener.h" |
| 14 | 14 |
| 15 class Profile; | |
| 16 class ToolbarActionsBarBubbleDelegate; | 15 class ToolbarActionsBarBubbleDelegate; |
| 17 class ToolbarActionsBarBubbleViewsUnitTest; | |
| 18 class ToolbarActionsBarBubbleViewsTest; | 16 class ToolbarActionsBarBubbleViewsTest; |
| 19 | 17 |
| 20 namespace views { | 18 namespace views { |
| 21 class Label; | 19 class Label; |
| 22 class LabelButton; | |
| 23 class Link; | 20 class Link; |
| 24 } | 21 } |
| 25 | 22 |
| 26 class ToolbarActionsBarBubbleViews : public views::BubbleDialogDelegateView, | 23 class ToolbarActionsBarBubbleViews : public views::BubbleDialogDelegateView, |
| 27 public views::LinkListener { | 24 public views::LinkListener { |
| 28 public: | 25 public: |
| 29 ToolbarActionsBarBubbleViews( | 26 ToolbarActionsBarBubbleViews( |
| 30 views::View* anchor_view, | 27 views::View* anchor_view, |
| 31 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate); | 28 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate); |
| 32 ~ToolbarActionsBarBubbleViews() override; | 29 ~ToolbarActionsBarBubbleViews() override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 void LinkClicked(views::Link* source, int event_flags) override; | 51 void LinkClicked(views::Link* source, int event_flags) override; |
| 55 | 52 |
| 56 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; | 53 std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_; |
| 57 views::Label* item_list_; | 54 views::Label* item_list_; |
| 58 views::Link* link_; | 55 views::Link* link_; |
| 59 | 56 |
| 60 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews); | 57 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews); |
| 61 }; | 58 }; |
| 62 | 59 |
| 63 #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 |