summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/global_error_bubble_controller.h
blob: 9c61c8b3a28ddf0f9ffc4a09495b01c22b666822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_
#pragma once

#import <Cocoa/Cocoa.h>

#import "chrome/browser/ui/cocoa/base_bubble_controller.h"

class GlobalError;
@class GTMUILocalizerAndLayoutTweaker;
@class GTMWidthBasedTweaker;

// This is a bubble view shown from the wrench menu to display information
// about a global error.
@interface GlobalErrorBubbleController : BaseBubbleController {
 @private
  // |error_| can be NULL after -close is called.
  GlobalError* error_;

  IBOutlet NSImageView* iconView_;
  IBOutlet NSTextField* title_;
  IBOutlet NSTextField* message_;
  IBOutlet NSButton* acceptButton_;
  IBOutlet NSButton* cancelButton_;
  IBOutlet GTMUILocalizerAndLayoutTweaker* layoutTweaker_;
  IBOutlet GTMWidthBasedTweaker* buttonContainer_;
}

- (IBAction)onAccept:(id)sender;
- (IBAction)onCancel:(id)sender;

@end

#endif  // CHROME_BROWSER_UI_COCOA_GLOBAL_ERROR_BUBBLE_CONTROLLER_H_