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

Side by Side Diff: chrome/browser/ui/cocoa/bubble_anchor_helper_views.h

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Added comments Created 3 years, 7 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 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
18 // Returns the star icon decoration in the omnibox.
19 LocationBarDecoration* GetStarDecoration(
20 views::BubbleDialogDelegateView* bubble);
21
22 // Returns the page icon decoration in the omnibox.
23 LocationBarDecoration* GetPageInfoDecoration(
24 views::BubbleDialogDelegateView* bubble);
25
12 // Monitors |bubble|'s parent window for size changes, and updates the bubble 26 // Monitors |bubble|'s parent window for size changes, and updates the bubble
13 // anchor. The monitor will be deleted when |bubble| is closed. 27 // anchor. The monitor will be deleted when |bubble| is closed. If |decoration|
14 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble); 28 // is provided, the decoration will be set to active in this function. It will
29 // be set to inactive when |bubble| is closed.
30 void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble,
31 LocationBarDecoration* decoration = nullptr);
15 32
16 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698