summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/extension_installed_bubble_bridge.mm
blob: e43b956a3016bda9e401807e70e284b2f8c62f37 (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
// Copyright (c) 2010 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.

#import <Cocoa/Cocoa.h>

#import "extension_installed_bubble_bridge.h"

#include "chrome/browser/browser.h"
#import "chrome/browser/cocoa/extension_installed_bubble_controller.h"
#include "chrome/common/extensions/extension.h"

void ExtensionInstalledBubbleCocoa::ShowExtensionInstalledBubble(
    gfx::NativeWindow window,
    Extension* extension,
    Browser* browser,
    SkBitmap icon) {
  // The controller is deallocated when the window is closed, so no need to
  // worry about it here.
  [[ExtensionInstalledBubbleController alloc]
      initWithParentWindow:window
                 extension:extension
                   browser:browser
                      icon:icon];
}