OLD | NEW |
---|---|
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 Loading... | |
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 content::WebContents* web_contents); | |
40 LocationBarBubbleDelegateView(views::View* anchor_view, | |
tapted
2017/04/19 03:31:06
// TODO(..) Delete this override?
varkha
2017/04/19 08:34:16
Done.
| |
38 content::WebContents* web_contents); | 41 content::WebContents* web_contents); |
39 ~LocationBarBubbleDelegateView() override; | 42 ~LocationBarBubbleDelegateView() override; |
40 | 43 |
41 // Displays the bubble with appearance and behavior tailored for |reason|. | 44 // Displays the bubble with appearance and behavior tailored for |reason|. |
42 void ShowForReason(DisplayReason reason); | 45 void ShowForReason(DisplayReason reason); |
43 | 46 |
44 // views::BubbleDialogDelegateView: | 47 // views::BubbleDialogDelegateView: |
45 int GetDialogButtons() const override; | 48 int GetDialogButtons() const override; |
46 | 49 |
47 // content::NotificationObserver: | 50 // content::NotificationObserver: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 void AdjustForFullscreen(const gfx::Rect& screen_bounds); | 84 void AdjustForFullscreen(const gfx::Rect& screen_bounds); |
82 | 85 |
83 private: | 86 private: |
84 // Used to register for fullscreen change notifications. | 87 // Used to register for fullscreen change notifications. |
85 content::NotificationRegistrar registrar_; | 88 content::NotificationRegistrar registrar_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(LocationBarBubbleDelegateView); | 90 DISALLOW_COPY_AND_ASSIGN(LocationBarBubbleDelegateView); |
88 }; | 91 }; |
89 | 92 |
90 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIE W_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_BUBBLE_DELEGATE_VIE W_H_ |
OLD | NEW |