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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIEW_H _ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIEW_H _
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIEW_H _ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIEW_H _
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 17 matching lines...) Expand all
28 // location bar icon). 28 // location bar icon).
29 USER_GESTURE, 29 USER_GESTURE,
30 30
31 // The bubble appears spontaneously over the course of the user's 31 // The bubble appears spontaneously over the course of the user's
32 // interaction with Chrome (e.g. due to some change in the feature's 32 // interaction with Chrome (e.g. due to some change in the feature's
33 // status). 33 // status).
34 AUTOMATIC, 34 AUTOMATIC,
35 }; 35 };
36 36
37 LocationBarBubbleDelegateView(views::View* anchor_view, 37 LocationBarBubbleDelegateView(views::View* anchor_view,
38 const gfx::Point& anchor_point,
39 views::BubbleBorder::Arrow arrow,
40 content::WebContents* web_contents);
41 LocationBarBubbleDelegateView(views::View* anchor_view,
tapted 2017/04/11 07:48:58 There's probably only 1-2 other callers - is it ea
varkha 2017/04/12 01:57:28 There are 5, I'd rather leave this to a separate C
38 content::WebContents* web_contents); 42 content::WebContents* web_contents);
39 ~LocationBarBubbleDelegateView() override; 43 ~LocationBarBubbleDelegateView() override;
40 44
41 // Displays the bubble with appearance and behavior tailored for |reason|. 45 // Displays the bubble with appearance and behavior tailored for |reason|.
42 void ShowForReason(DisplayReason reason); 46 void ShowForReason(DisplayReason reason);
43 47
44 // views::BubbleDialogDelegateView: 48 // views::BubbleDialogDelegateView:
45 int GetDialogButtons() const override; 49 int GetDialogButtons() const override;
46 50
47 // content::NotificationObserver: 51 // content::NotificationObserver:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void AdjustForFullscreen(const gfx::Rect& screen_bounds); 85 void AdjustForFullscreen(const gfx::Rect& screen_bounds);
82 86
83 private: 87 private:
84 // Used to register for fullscreen change notifications. 88 // Used to register for fullscreen change notifications.
85 content::NotificationRegistrar registrar_; 89 content::NotificationRegistrar registrar_;
86 90
87 DISALLOW_COPY_AND_ASSIGN(LocationBarBubbleDelegateView); 91 DISALLOW_COPY_AND_ASSIGN(LocationBarBubbleDelegateView);
88 }; 92 };
89 93
90 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIE W_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIE W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698