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

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

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Rebased and applied tapted's changes 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 class Browser;
11 class ContentSettingBubbleModel;
12 class GURL;
13 class LocationBarDecoration;
14 class Profile;
15
16 namespace bookmarks {
17 class BookmarkBubbleObserver;
18 }
19
20 namespace content {
21 class WebContents;
22 }
23
24 namespace gfx {
25 class Point;
26 }
27
28 namespace security_state {
29 struct SecurityInfo;
30 }
31
32 namespace chrome {
33
34 // Shows a Views page info bubble at the given anchor point.
35 void ShowPageInfoBubbleViewsAtPoint(
36 const gfx::Point& anchor_point,
37 Profile* profile,
38 content::WebContents* web_contents,
39 const GURL& virtual_url,
40 const security_state::SecurityInfo& security_info,
41 LocationBarDecoration* decoration);
42
43 // Show a Views bookmark bubble at the given point. This occurs when the
44 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu
45 // or via a key equivalent.
46 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point,
47 gfx::NativeView parent,
48 bookmarks::BookmarkBubbleObserver* observer,
49 Browser* browser,
50 const GURL& url,
51 bool newly_bookmarked,
52 LocationBarDecoration* decoration);
53
54 // This is a class so that it can be friended from ContentSettingBubbleContents,
55 // which allows it to call SetAnchorRect().
56 class ContentSettingBubbleViewsBridge {
57 public:
58 static void Show(gfx::NativeView parent_view,
59 ContentSettingBubbleModel* model,
60 content::WebContents* web_contents,
61 const gfx::Point& anchor,
62 LocationBarDecoration* decoration);
63
64 private:
65 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge);
66 };
67
68 } // namespace chrome
69
70 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698