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

Side by Side Diff: chrome/browser/ui/cocoa/confirm_bubble_controller.h

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
Robert Sesek 2011/11/28 15:55:39 #if guards
Hironori Bono 2011/12/09 11:14:32 Done. Thanks for reminding me.
5 #import <Cocoa/Cocoa.h>
6
7 #import "base/mac/cocoa_protocols.h"
8
9 class ConfirmBubbleModel;
10
11 // A view controller that manages a bubble view and becomes a proxy between
12 // the view and the ConfirmBubbleModel object. This class is internally used
13 // in ConfirmBubbleView::Show() and users do not have to change this class
14 // directly.
15 @interface ConfirmBubbleController :
16 NSViewController<NSTextViewDelegate> {
17 @private
18 NSView* parent_; // weak
19 CGPoint origin_;
20 ConfirmBubbleModel* model_; // weak
21 }
22
23 // Creates a ConfirmBubbleController object.
24 - (id)initWithParent:(NSView*)parent
25 origin:(CGPoint)origin
26 model:(ConfirmBubbleModel*)model;
27
28 // Access to the properties of the ConfirmBubbleModel object. These functions
29 // also converts C++ variables returned by the ConfirmBubbleModel object to
30 // Objective-C variables.
31 - (NSPoint)origin;
32 - (NSString*)title;
33 - (NSString*)messageText;
34 - (NSString*)linkText;
35 - (NSString*)okButton;
36 - (NSString*)cancelButton;
37 - (BOOL)hasOkButton;
38 - (BOOL)hasCancelButton;
39 - (NSImage*)icon;
40
41 // Handle actions from from the ConfirmBubbleView objet.
42 - (void)accept;
43 - (void)cancel;
44 - (void)linkClicked;
45
46 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698