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_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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class GlobalErrorWithStandardBubble; | 15 class GlobalErrorWithStandardBubble; |
16 @class GTMUILocalizerAndLayoutTweaker; | 16 @class GTMUILocalizerAndLayoutTweaker; |
17 @class GTMWidthBasedTweaker; | 17 @class GTMWidthBasedTweaker; |
18 class Profile; | 18 class Profile; |
19 | 19 |
20 namespace GlobalErrorBubbleControllerInternal { | 20 namespace GlobalErrorBubbleControllerInternal { |
21 class Bridge; | 21 class Bridge; |
22 } | 22 } |
23 | 23 |
24 // This is a bubble view shown from the wrench menu to display information | 24 // This is a bubble view shown from the app menu to display information |
25 // about a global error. | 25 // about a global error. |
26 @interface GlobalErrorBubbleController : BaseBubbleController { | 26 @interface GlobalErrorBubbleController : BaseBubbleController { |
27 @private | 27 @private |
28 base::WeakPtr<GlobalErrorWithStandardBubble> error_; | 28 base::WeakPtr<GlobalErrorWithStandardBubble> error_; |
29 scoped_ptr<GlobalErrorBubbleControllerInternal::Bridge> bridge_; | 29 scoped_ptr<GlobalErrorBubbleControllerInternal::Bridge> bridge_; |
30 Browser* browser_; | 30 Browser* browser_; |
31 | 31 |
32 IBOutlet NSImageView* iconView_; | 32 IBOutlet NSImageView* iconView_; |
33 IBOutlet NSTextField* title_; | 33 IBOutlet NSTextField* title_; |
34 IBOutlet NSTextField* message_; | 34 IBOutlet NSTextField* message_; |
35 IBOutlet NSButton* acceptButton_; | 35 IBOutlet NSButton* acceptButton_; |
36 IBOutlet NSButton* cancelButton_; | 36 IBOutlet NSButton* cancelButton_; |
37 IBOutlet GTMUILocalizerAndLayoutTweaker* layoutTweaker_; | 37 IBOutlet GTMUILocalizerAndLayoutTweaker* layoutTweaker_; |
38 IBOutlet GTMWidthBasedTweaker* buttonContainer_; | 38 IBOutlet GTMWidthBasedTweaker* buttonContainer_; |
39 } | 39 } |
40 | 40 |
41 - (IBAction)onAccept:(id)sender; | 41 - (IBAction)onAccept:(id)sender; |
42 - (IBAction)onCancel:(id)sender; | 42 - (IBAction)onCancel:(id)sender; |
43 | 43 |
44 - (void)close; | 44 - (void)close; |
45 | 45 |
46 @end | 46 @end |
47 | 47 |
48 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ |
OLD | NEW |