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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h

Issue 2630473003: MacViews: Harmony for toolbar actions bubbles. (Closed)
Patch Set: Fix DialogBrowserTest Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
index a3f5988ae0b5cf70383839e5fe2ab92b75368bad..ff51251a02545128cdafdab9bb2f650d18c41ff8 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
@@ -23,8 +23,12 @@ class Link;
class ToolbarActionsBarBubbleViews : public views::BubbleDialogDelegateView,
public views::LinkListener {
public:
+ // Creates the bubble anchored to |anchor_view| or, if that is null, to
+ // |anchor_point| in screen coordinates.
ToolbarActionsBarBubbleViews(
views::View* anchor_view,
+ const gfx::Point& anchor_point,
+ bool anchored_to_action,
std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate);
~ToolbarActionsBarBubbleViews() override;
@@ -53,6 +57,7 @@ class ToolbarActionsBarBubbleViews : public views::BubbleDialogDelegateView,
std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
views::Label* item_list_;
views::Link* link_;
+ const bool anchored_to_action_;
DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBarBubbleViews);
};

Powered by Google App Engine
This is Rietveld 408576698