Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8081)

Unified Diff: chrome/browser/ui/cocoa/extension_install_prompt.mm

Issue 6269009: Move loose extension files in c/b/ui/cocoa/ into the extensions/ subdir... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extension_install_prompt.mm
===================================================================
--- chrome/browser/ui/cocoa/extension_install_prompt.mm (revision 71534)
+++ chrome/browser/ui/cocoa/extension_install_prompt.mm (working copy)
@@ -1,51 +0,0 @@
-// 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>
-
-#include <string>
-
-#include "app/l10n_util_mac.h"
-#include "app/resource_bundle.h"
-#include "base/sys_string_conversions.h"
-#include "base/utf_string_conversions.h"
-#include "chrome/browser/extensions/extension_install_ui.h"
-#include "chrome/common/extensions/extension.h"
-#include "grit/browser_resources.h"
-#include "grit/chromium_strings.h"
-#include "grit/generated_resources.h"
-#include "skia/ext/skia_utils_mac.h"
-
-class Profile;
-
-void ExtensionInstallUI::ShowExtensionInstallUIPromptImpl(
- Profile* profile,
- Delegate* delegate,
- const Extension* extension,
- SkBitmap* icon,
- ExtensionInstallUI::PromptType type) {
- NSAlert* alert = [[[NSAlert alloc] init] autorelease];
-
- NSButton* continueButton = [alert addButtonWithTitle:l10n_util::GetNSString(
- ExtensionInstallUI::kButtonIds[type])];
- // Clear the key equivalent (currently 'Return') because cancel is the default
- // button.
- [continueButton setKeyEquivalent:@""];
-
- NSButton* cancelButton = [alert addButtonWithTitle:l10n_util::GetNSString(
- IDS_CANCEL)];
- [cancelButton setKeyEquivalent:@"\r"];
-
- [alert setMessageText:l10n_util::GetNSStringF(
- ExtensionInstallUI::kHeadingIds[type],
- UTF8ToUTF16(extension->name()))];
- [alert setAlertStyle:NSWarningAlertStyle];
- [alert setIcon:gfx::SkBitmapToNSImage(*icon)];
-
- if ([alert runModal] == NSAlertFirstButtonReturn) {
- delegate->InstallUIProceed();
- } else {
- delegate->InstallUIAbort();
- }
-}
« no previous file with comments | « chrome/browser/extensions/extension_install_ui.cc ('k') | chrome/browser/ui/cocoa/extension_installed_bubble_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698