summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/extensions/extension_infobar_controller.h
blob: f1d098738a11f9ead0e8be9c69d5368092b039ce (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
39
40
41
// 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_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_
#pragma once

#import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"

#import <Cocoa/Cocoa.h>

#import "base/memory/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"

@class ExtensionActionContextMenu;
class ExtensionInfoBarDelegate;
class InfobarBridge;
@class MenuButton;

@interface ExtensionInfoBarController : InfoBarController {
  // The native extension view retrieved from the extension host. Weak.
  NSView* extensionView_;

  // The window containing this InfoBar. Weak.
  NSWindow* window_;

  // The InfoBar's button with the Extension's icon that launches the context
  // menu.
  scoped_nsobject<MenuButton> dropdownButton_;

  // The context menu that pops up when the left button is clicked.
  scoped_nsobject<ExtensionActionContextMenu> contextMenu_;

  // Helper class to bridge C++ and ObjC functionality together for the infobar.
  scoped_ptr<InfobarBridge> bridge_;
}

@end

#endif  // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_