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

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: rebase 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..13c4f7d714c68ad03940b38e6683ac80f521e75d 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,24 @@ class WebContents;
class LocationBarBubbleDelegateView : public views::BubbleDelegateView,
public content::NotificationObserver {
public:
+ enum DisplayReason {
+ // The bubble appears as a direct result of a user action (clicking on the
+ // location bar icon).
+ USER_GESTURE,
+
+ // The bubble appears spontaneously over the course of the user's
+ // interaction with Chrome (e.g. due to some change in the feature's
+ // status).
+ AUTOMATIC,
+ };
+
LocationBarBubbleDelegateView(views::View* anchor_view,
content::WebContents* web_contents);
~LocationBarBubbleDelegateView() override;
+ // Displays the bubble with appearance and behavior tailored for |reason|.
+ void ShowForReason(DisplayReason reason);
+
// content::NotificationObserver:
void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698