| 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_
|
|
|