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_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 | 11 |
12 @class ConfirmBubbleController; | 12 @class ConfirmBubbleController; |
13 class ConfirmBubbleModel; | |
14 | 13 |
15 // A view class that implements a bubble consisting of the following items: | 14 // A view class that implements a bubble consisting of the following items: |
16 // * one icon ("icon") | 15 // * one icon ("icon") |
17 // * one title text ("title") | 16 // * one title text ("title") |
18 // * one message text ("message") | 17 // * one message text ("message") |
19 // * one optional link ("link") | 18 // * one optional link ("link") |
20 // * two optional buttons ("ok" and "cancel") | 19 // * two optional buttons ("ok" and "cancel") |
21 // | 20 // |
22 // This bubble is convenient when we wish to ask transient, non-blocking | 21 // This bubble is convenient when we wish to ask transient, non-blocking |
23 // questions. Unlike a dialog, a bubble menu disappears when we click outside of | 22 // questions. Unlike a dialog, a bubble menu disappears when we click outside of |
(...skipping 29 matching lines...) Expand all Loading... |
53 @end | 52 @end |
54 | 53 |
55 // Exposed only for unit testing. | 54 // Exposed only for unit testing. |
56 @interface ConfirmBubbleCocoa (ExposedForUnitTesting) | 55 @interface ConfirmBubbleCocoa (ExposedForUnitTesting) |
57 - (void)clickOk; | 56 - (void)clickOk; |
58 - (void)clickCancel; | 57 - (void)clickCancel; |
59 - (void)clickLink; | 58 - (void)clickLink; |
60 @end | 59 @end |
61 | 60 |
62 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_COCOA_H_ | 61 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_BUBBLE_COCOA_H_ |
OLD | NEW |