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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_dialogs_views_mac.h
diff --git a/chrome/browser/ui/cocoa/browser_dialogs_views_mac.h b/chrome/browser/ui/cocoa/browser_dialogs_views_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..bdc1fb52fb3cf715d5ff6aa1d75582ff382dc443
--- /dev/null
+++ b/chrome/browser/ui/cocoa/browser_dialogs_views_mac.h
@@ -0,0 +1,70 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
+#define CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+class Browser;
+class ContentSettingBubbleModel;
+class GURL;
+class LocationBarDecoration;
+class Profile;
+
+namespace bookmarks {
+class BookmarkBubbleObserver;
+}
+
+namespace content {
+class WebContents;
+}
+
+namespace gfx {
+class Point;
+}
+
+namespace security_state {
+struct SecurityInfo;
+}
+
+namespace chrome {
+
+// Shows a Views page info bubble at the given anchor point.
+void ShowPageInfoBubbleViewsAtPoint(
+ const gfx::Point& anchor_point,
+ Profile* profile,
+ content::WebContents* web_contents,
+ const GURL& virtual_url,
+ const security_state::SecurityInfo& security_info,
+ LocationBarDecoration* decoration);
+
+// Show a Views bookmark bubble at the given point. This occurs when the
+// bookmark star is clicked or "Bookmark This Page..." is selected from a menu
+// or via a key equivalent.
+void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point,
+ gfx::NativeView parent,
+ bookmarks::BookmarkBubbleObserver* observer,
+ Browser* browser,
+ const GURL& url,
+ bool newly_bookmarked,
+ LocationBarDecoration* decoration);
+
+// This is a class so that it can be friended from ContentSettingBubbleContents,
+// which allows it to call SetAnchorRect().
+class ContentSettingBubbleViewsBridge {
+ public:
+ static void Show(gfx::NativeView parent_view,
+ ContentSettingBubbleModel* model,
+ content::WebContents* web_contents,
+ const gfx::Point& anchor,
+ LocationBarDecoration* decoration);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_COCOA_BROWSER_DIALOGS_VIEWS_MAC_H_
« 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