OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
12 | 12 |
13 class GlobalError; | 13 class GlobalError; |
| 14 @class GTMUILocalizerAndLayoutTweaker; |
| 15 @class GTMWidthBasedTweaker; |
14 | 16 |
15 // This is a bubble view shown from the wrench menu to display information | 17 // This is a bubble view shown from the wrench menu to display information |
16 // about a global error. | 18 // about a global error. |
17 @interface GlobalErrorBubbleController : BaseBubbleController { | 19 @interface GlobalErrorBubbleController : BaseBubbleController { |
18 @private | 20 @private |
19 // |error_| can be NULL after -close is called. | 21 // |error_| can be NULL after -close is called. |
20 GlobalError* error_; | 22 GlobalError* error_; |
21 | 23 |
22 IBOutlet NSImageView* iconView_; | 24 IBOutlet NSImageView* iconView_; |
23 IBOutlet NSTextField* title_; | 25 IBOutlet NSTextField* title_; |
24 IBOutlet NSTextField* message_; | 26 IBOutlet NSTextField* message_; |
25 IBOutlet NSButton* acceptButton_; | 27 IBOutlet NSButton* acceptButton_; |
26 IBOutlet NSButton* cancelButton_; | 28 IBOutlet NSButton* cancelButton_; |
| 29 IBOutlet GTMUILocalizerAndLayoutTweaker* layoutTweaker_; |
| 30 IBOutlet GTMWidthBasedTweaker* buttonContainer_; |
27 } | 31 } |
28 | 32 |
29 - (IBAction)onAccept:(id)sender; | 33 - (IBAction)onAccept:(id)sender; |
30 - (IBAction)onCancel:(id)sender; | 34 - (IBAction)onCancel:(id)sender; |
31 | 35 |
32 @end | 36 @end |
33 | 37 |
34 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ | 38 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ |
OLD | NEW |