OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ |
7 | 7 |
8 namespace views { | 8 namespace views { |
9 class BubbleDialogDelegateView; | 9 class BubbleDialogDelegateView; |
10 } | 10 } |
11 | 11 |
| 12 class LocationBarDecoration; |
| 13 |
| 14 // Returns the manage password icon decoration in the omnibox. |
| 15 LocationBarDecoration* GetManagePasswordDecoration( |
| 16 views::BubbleDialogDelegateView* bubble); |
| 17 |
12 // Monitors |bubble|'s parent window for size changes, and updates the bubble | 18 // Monitors |bubble|'s parent window for size changes, and updates the bubble |
13 // anchor. The monitor will be deleted when |bubble| is closed. | 19 // anchor. The monitor will be deleted when |bubble| is closed. If |decoration| |
14 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble); | 20 // is provided, the decoration will be set to active in this function. It will |
| 21 // be set to inactive when |bubble| is closed. |
| 22 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble, |
| 23 LocationBarDecoration* decoration = nullptr); |
15 | 24 |
16 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ | 25 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ |
OLD | NEW |