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

Side by Side Diff: chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.mm

Issue 2319303002: Bug Fix: Title Case for Picker Window Title (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/media_picker/desktop_media_picker_controller.h" 5 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 - (void)initializeContentsWithAppName:(const base::string16&)appName 168 - (void)initializeContentsWithAppName:(const base::string16&)appName
169 targetName:(const base::string16&)targetName 169 targetName:(const base::string16&)targetName
170 requestAudio:(bool)requestAudio { 170 requestAudio:(bool)requestAudio {
171 // Use flipped coordinates to facilitate manual layout. 171 // Use flipped coordinates to facilitate manual layout.
172 base::scoped_nsobject<FlippedView> content( 172 base::scoped_nsobject<FlippedView> content(
173 [[FlippedView alloc] initWithFrame:NSZeroRect]); 173 [[FlippedView alloc] initWithFrame:NSZeroRect]);
174 [[self window] setContentView:content]; 174 [[self window] setContentView:content];
175 NSPoint origin = NSMakePoint(kFramePadding, kFramePadding); 175 NSPoint origin = NSMakePoint(kFramePadding, kFramePadding);
176 176
177 // Set the dialog's title. 177 // Set the dialog's title.
178 NSString* titleText = l10n_util::GetNSString(IDS_DESKTOP_MEDIA_PICKER_TITLE); 178 NSString* titleText =
179 l10n_util::GetNSString(IDS_DESKTOP_MEDIA_PICKER_TITLE_MAC);
179 [[self window] setTitle:titleText]; 180 [[self window] setTitle:titleText];
180 181
181 // Set the dialog's description. 182 // Set the dialog's description.
182 NSString* descriptionText; 183 NSString* descriptionText;
183 if (appName == targetName) { 184 if (appName == targetName) {
184 descriptionText = l10n_util::GetNSStringF( 185 descriptionText = l10n_util::GetNSStringF(
185 IDS_DESKTOP_MEDIA_PICKER_TEXT, appName); 186 IDS_DESKTOP_MEDIA_PICKER_TEXT, appName);
186 } else { 187 } else {
187 descriptionText = l10n_util::GetNSStringF( 188 descriptionText = l10n_util::GetNSStringF(
188 IDS_DESKTOP_MEDIA_PICKER_TEXT_DELEGATED, appName, targetName); 189 IDS_DESKTOP_MEDIA_PICKER_TEXT_DELEGATED, appName, targetName);
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 785
785 DesktopMediaPickerItem* item = [items objectAtIndex:index]; 786 DesktopMediaPickerItem* item = [items objectAtIndex:index];
786 [item setImageRepresentation:image]; 787 [item setImageRepresentation:image];
787 [browser reloadData]; 788 [browser reloadData];
788 789
789 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS) 790 if (sourceType == DesktopMediaID::TYPE_WEB_CONTENTS)
790 [self setTabBrowserIndex:selectedIndex]; 791 [self setTabBrowserIndex:selectedIndex];
791 } 792 }
792 793
793 @end // @interface DesktopMediaPickerController 794 @end // @interface DesktopMediaPickerController
OLDNEW
« chrome/app/generated_resources.grd ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698