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

Side by Side Diff: chrome/browser/ui/cocoa/confirm_bubble_model.mm

Issue 8697001: Implement confirm bubble for Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #include "chrome/browser/ui/confirm_bubble_model.h"
6
7 #include "chrome/browser/ui/cocoa/confirm_bubble_controller.h"
8 #include "ui/gfx/point.h"
9
10 void ConfirmBubbleModel::Show(gfx::NativeView view,
Robert Sesek 2011/12/15 18:47:09 This could probably just go in the controller.mm f
Hironori Bono 2012/01/05 10:45:55 Thanks for your suggestion. I would like to talk w
11 const gfx::Point& origin,
12 ConfirmBubbleModel* model) {
13 // Create a custom NSViewController that manages a bubble view, and add it to
14 // a child to the specified view. This controller will be automatically
15 // deleted when it loses first-responder status.
16 ConfirmBubbleController* controller =
17 [[ConfirmBubbleController alloc] initWithParent:view
18 origin:origin.ToCGPoint()
19 model:model];
20 [view addSubview:[controller view]
21 positioned:NSWindowAbove
22 relativeTo:nil];
23 [[view window] makeFirstResponder:[controller view]];
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698