| 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 <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 14 | 14 |
| 15 class Browser; | 15 class Browser; |
| 16 class GlobalErrorWithStandardBubble; | 16 class GlobalErrorWithStandardBubble; |
| 17 @class GTMUILocalizerAndLayoutTweaker; | 17 @class GTMUILocalizerAndLayoutTweaker; |
| 18 @class GTMWidthBasedTweaker; | 18 @class GTMWidthBasedTweaker; |
| 19 class Profile; | |
| 20 | 19 |
| 21 namespace GlobalErrorBubbleControllerInternal { | 20 namespace GlobalErrorBubbleControllerInternal { |
| 22 class Bridge; | 21 class Bridge; |
| 23 } | 22 } |
| 24 | 23 |
| 25 // This is a bubble view shown from the app menu to display information | 24 // This is a bubble view shown from the app menu to display information |
| 26 // about a global error. | 25 // about a global error. |
| 27 @interface GlobalErrorBubbleController : BaseBubbleController { | 26 @interface GlobalErrorBubbleController : BaseBubbleController { |
| 28 @private | 27 @private |
| 29 base::WeakPtr<GlobalErrorWithStandardBubble> error_; | 28 base::WeakPtr<GlobalErrorWithStandardBubble> error_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 } | 39 } |
| 41 | 40 |
| 42 - (IBAction)onAccept:(id)sender; | 41 - (IBAction)onAccept:(id)sender; |
| 43 - (IBAction)onCancel:(id)sender; | 42 - (IBAction)onCancel:(id)sender; |
| 44 | 43 |
| 45 - (void)close; | 44 - (void)close; |
| 46 | 45 |
| 47 @end | 46 @end |
| 48 | 47 |
| 49 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |