diff options
Diffstat (limited to 'chrome/browser/cocoa/extension_installed_bubble_bridge.mm')
-rw-r--r-- | chrome/browser/cocoa/extension_installed_bubble_bridge.mm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/extension_installed_bubble_bridge.mm b/chrome/browser/cocoa/extension_installed_bubble_bridge.mm new file mode 100644 index 0000000..e43b956 --- /dev/null +++ b/chrome/browser/cocoa/extension_installed_bubble_bridge.mm @@ -0,0 +1,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]; +} |