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

Unified Diff: chrome/browser/ui/browser_dialogs.h

Issue 1570153003: Use MacViews for ContentSettingBubbles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits for tapted Created 4 years, 11 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
Index: chrome/browser/ui/browser_dialogs.h
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h
index ddb7bc0a216fc0a0f62b936634e5749365785318..fd1f783e48640f311e454eb7860d65a6d638a036 100644
--- a/chrome/browser/ui/browser_dialogs.h
+++ b/chrome/browser/ui/browser_dialogs.h
@@ -13,6 +13,7 @@
#include "ui/gfx/native_widget_types.h"
class Browser;
+class ContentSettingBubbleModel;
class GURL;
class LoginHandler;
class Profile;
@@ -116,6 +117,22 @@ void ShowBookmarkEditorViews(gfx::NativeWindow parent_window,
const BookmarkEditor::EditDetails& details,
BookmarkEditor::Configuration configuration);
+#if defined(OS_MACOSX)
+
+// 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);
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge);
+};
+
+#endif // OS_MACOSX
+
#endif // TOOLKIT_VIEWS
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698