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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm

Issue 8835003: extensions: remove install/uninstall terminology (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // total of all message heights. 297 // total of all message heights.
298 - (int)calculateWindowHeight { 298 - (int)calculateWindowHeight {
299 // Adjust the window height to reflect the sum height of all messages 299 // Adjust the window height to reflect the sum height of all messages
300 // and vertical padding. 300 // and vertical padding.
301 int newWindowHeight = 2 * extension_installed_bubble::kOuterVerticalMargin; 301 int newWindowHeight = 2 * extension_installed_bubble::kOuterVerticalMargin;
302 302
303 // First part of extension installed message. 303 // First part of extension installed message.
304 string16 extension_name = UTF8ToUTF16(extension_->name().c_str()); 304 string16 extension_name = UTF8ToUTF16(extension_->name().c_str());
305 base::i18n::AdjustStringForLocaleDirection(&extension_name); 305 base::i18n::AdjustStringForLocaleDirection(&extension_name);
306 [extensionInstalledMsg_ setStringValue:l10n_util::GetNSStringF( 306 [extensionInstalledMsg_ setStringValue:l10n_util::GetNSStringF(
307 IDS_EXTENSION_INSTALLED_HEADING, extension_name)]; 307 IDS_EXTENSION_INSTALLED_HEADING, extension_name,
308 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME)];
308 [GTMUILocalizerAndLayoutTweaker 309 [GTMUILocalizerAndLayoutTweaker
309 sizeToFitFixedWidthTextField:extensionInstalledMsg_]; 310 sizeToFitFixedWidthTextField:extensionInstalledMsg_];
310 newWindowHeight += [extensionInstalledMsg_ frame].size.height + 311 newWindowHeight += [extensionInstalledMsg_ frame].size.height +
311 extension_installed_bubble::kInnerVerticalMargin; 312 extension_installed_bubble::kInnerVerticalMargin;
312 313
313 // If type is page action, include a special message about page actions. 314 // If type is page action, include a special message about page actions.
314 if (type_ == extension_installed_bubble::kPageAction) { 315 if (type_ == extension_installed_bubble::kPageAction) {
315 [extraInfoMsg_ setHidden:NO]; 316 [extraInfoMsg_ setHidden:NO];
316 [[extraInfoMsg_ cell] 317 [[extraInfoMsg_ cell]
317 setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; 318 setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 386
386 - (NSRect)getExtensionInstalledInfoMsgFrame { 387 - (NSRect)getExtensionInstalledInfoMsgFrame {
387 return [extensionInstalledInfoMsg_ frame]; 388 return [extensionInstalledInfoMsg_ frame];
388 } 389 }
389 390
390 - (void)extensionUnloaded:(id)sender { 391 - (void)extensionUnloaded:(id)sender {
391 extension_ = NULL; 392 extension_ = NULL;
392 } 393 }
393 394
394 @end 395 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698