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

Unified Diff: chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm

Issue 2650583012: MacViews: Enable views based Ask Google For Suggestions dialog behind secondary-ui-md flag. (Closed)
Patch Set: Rebase. Created 3 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/cocoa/confirm_bubble_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm b/chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm
index b1cd01d578a1c3272def74894175b3e0b6bdc52b..bc62bd493feebec15e35e4b125da9e5a058eaada 100644
--- a/chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm
+++ b/chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm
@@ -41,27 +41,6 @@ const int kButtonVEdgeMargin = 6;
// left or right of a button.
const int kButtonHEdgeMargin = 7;
-namespace chrome {
-
-void ShowConfirmBubble(gfx::NativeWindow window,
- gfx::NativeView anchor_view,
- const gfx::Point& origin,
- std::unique_ptr<ConfirmBubbleModel> model) {
- // Create a custom NSViewController that manages a bubble view, and add it to
- // a child to the specified |anchor_view|. This controller will be
- // automatically deleted when it loses first-responder status.
- ConfirmBubbleController* controller =
- [[ConfirmBubbleController alloc] initWithParent:anchor_view
- origin:origin.ToCGPoint()
- model:std::move(model)];
- [anchor_view addSubview:[controller view]
- positioned:NSWindowAbove
- relativeTo:nil];
- [[anchor_view window] makeFirstResponder:[controller view]];
-}
-
-} // namespace chrome
-
// An interface that is derived from NSTextView and does not accept
// first-responder status, i.e. a NSTextView-derived class that never becomes
// the first responder. When we click a NSTextView object, it becomes the first

Powered by Google App Engine
This is Rietveld 408576698