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

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

Issue 1402363013: Update location bar bubble/icon behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
index 18f29536f52c92f1a060e380aaad152bf16ffe04..71833ed8cc2b136af9ec14e9bc32d1fb7adda4fd 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
@@ -29,6 +29,15 @@ LocationBarBubbleDelegateView::LocationBarBubbleDelegateView(
LocationBarBubbleDelegateView::~LocationBarBubbleDelegateView() {}
+void LocationBarBubbleDelegateView::ShowForReason(DisplayReason reason) {
+ if (reason == USER_ACTION) {
+ SetArrowPaintType(views::BubbleBorder::PAINT_TRANSPARENT);
+ GetWidget()->Show();
+ } else {
+ GetWidget()->ShowInactive();
+ }
+}
+
void LocationBarBubbleDelegateView::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698