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 gfx { |
| 9 class Point; |
| 10 } |
| 11 |
8 namespace views { | 12 namespace views { |
9 class BubbleDialogDelegateView; | 13 class BubbleDialogDelegateView; |
10 } | 14 } |
11 | 15 |
| 16 class LocationBarDecoration; |
| 17 |
| 18 // Returns the manage password icon decoration in the omnibox. |
| 19 LocationBarDecoration* GetManagePasswordDecoration( |
| 20 views::BubbleDialogDelegateView* bubble); |
| 21 |
| 22 // Returns the star icon decoration in the omnibox. |
| 23 LocationBarDecoration* GetStarDecoration( |
| 24 views::BubbleDialogDelegateView* bubble); |
| 25 |
| 26 // Returns the page icon decoration in the omnibox. |
| 27 LocationBarDecoration* GetPageInfoDecoration( |
| 28 views::BubbleDialogDelegateView* bubble); |
| 29 |
| 30 LocationBarDecoration* GetContentSettingDecoration( |
| 31 views::BubbleDialogDelegateView* bubble, |
| 32 const gfx::Point& anchor); |
| 33 |
12 // Monitors |bubble|'s parent window for size changes, and updates the bubble | 34 // Monitors |bubble|'s parent window for size changes, and updates the bubble |
13 // anchor. The monitor will be deleted when |bubble| is closed. | 35 // anchor. The monitor will be deleted when |bubble| is closed. If |decoration| |
14 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble); | 36 // is provided, the decoration will be set to active in this function. It will |
| 37 // be set to inactive when |bubble| is closed. |
| 38 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble, |
| 39 LocationBarDecoration* decoration = nullptr); |
15 | 40 |
16 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ | 41 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ |
OLD | NEW |