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

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

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.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 113520aa9a69046dbb8dd19210081d6fbc9cec96..62f72aff67fc22ef4f51ab9106a891f6856e8fa9 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
@@ -22,10 +22,15 @@ class WebContents;
class LocationBarBubbleDelegateView : public views::BubbleDelegateView,
public content::NotificationObserver {
public:
+ enum DisplayReason { AUTOMATIC, USER_ACTION };
Peter Kasting 2015/11/10 00:24:18 I'm not opposed to adding this, but it seems like
Evan Stade 2015/11/10 19:18:26 Done, but I left the enum value as USER_GESTURE to
+
LocationBarBubbleDelegateView(views::View* anchor_view,
content::WebContents* web_contents);
~LocationBarBubbleDelegateView() override;
+ // Displays the bubble as a result of |reason|.
Peter Kasting 2015/11/10 00:24:18 You might want to note what we do differently in t
Evan Stade 2015/11/10 19:18:26 I don't like writing this type of comment because
+ void ShowForReason(DisplayReason reason);
+
// content::NotificationObserver:
void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698