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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (tests compile) 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h
index c83cd4314e09be680995ac25bf090640ef2e58f3..6f0f9f474915cc2b1dbfe498ecef731147e6ddb7 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h
@@ -35,6 +35,10 @@ class LocationBarBubbleDelegateView : public views::BubbleDialogDelegateView,
};
LocationBarBubbleDelegateView(views::View* anchor_view,
+ const gfx::Point& anchor_point,
+ views::BubbleBorder::Arrow arrow,
tapted 2017/04/12 05:08:42 Can we remove the |arrow| argument by calling bub
varkha 2017/04/12 09:16:43 Done. And we don't center it on other platforms (w
+ content::WebContents* web_contents);
+ LocationBarBubbleDelegateView(views::View* anchor_view,
content::WebContents* web_contents);
~LocationBarBubbleDelegateView() override;
@@ -71,6 +75,13 @@ class LocationBarBubbleDelegateView : public views::BubbleDialogDelegateView,
DISALLOW_COPY_AND_ASSIGN(WebContentMouseHandler);
};
+ // Sets up the bubble anchoring to |anchor_view|.
+ // Uses |anchor_point| and |arrow| type when |anchor_view| is nullptr.
+ void SetupAnchor(views::View* anchor_view,
+ const gfx::Point& anchor_point,
+ views::BubbleBorder::Arrow arrow,
+ content::WebContents* web_contents);
+
// Closes the bubble.
virtual void CloseBubble();

Powered by Google App Engine
This is Rietveld 408576698