OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 | 11 |
13 class ConfirmBubbleModel; | 12 class ConfirmBubbleModel; |
14 | 13 |
15 // A view controller that manages a bubble view and becomes a proxy between | 14 // A view controller that manages a bubble view and becomes a proxy between |
16 // the view and the ConfirmBubbleModel object. This class is internally used | 15 // the view and the ConfirmBubbleModel object. This class is internally used |
17 // in ShowConfirmBubble() and users do not have to change this class directly. | 16 // in ShowConfirmBubble() and users do not have to change this class directly. |
18 @interface ConfirmBubbleController : | 17 @interface ConfirmBubbleController : |
19 NSViewController<NSTextViewDelegate> { | 18 NSViewController<NSTextViewDelegate> { |
20 @private | 19 @private |
(...skipping 22 matching lines...) Expand all Loading... |
43 - (NSImage*)icon; | 42 - (NSImage*)icon; |
44 | 43 |
45 // Handle actions from the ConfirmBubbleCocoa objet. | 44 // Handle actions from the ConfirmBubbleCocoa objet. |
46 - (void)accept; | 45 - (void)accept; |
47 - (void)cancel; | 46 - (void)cancel; |
48 - (void)linkClicked; | 47 - (void)linkClicked; |
49 | 48 |
50 @end | 49 @end |
51 | 50 |
52 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ | 51 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_CONTROLLER_H_ |
OLD | NEW |