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

Side by Side Diff: remoting/host/disconnect_window_mac.mm

Issue 121123002: Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/disconnect_window_gtk.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "remoting/host/disconnect_window_mac.h" 7 #import "remoting/host/disconnect_window_mac.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 } // namespace remoting 81 } // namespace remoting
82 82
83 @implementation DisconnectWindowController 83 @implementation DisconnectWindowController
84 - (id)initWithCallback:(const base::Closure&)disconnect_callback 84 - (id)initWithCallback:(const base::Closure&)disconnect_callback
85 username:(const std::string&)username { 85 username:(const std::string&)username {
86 self = [super initWithWindowNibName:@"disconnect_window"]; 86 self = [super initWithWindowNibName:@"disconnect_window"];
87 if (self) { 87 if (self) {
88 disconnect_callback_ = disconnect_callback; 88 disconnect_callback_ = disconnect_callback;
89 username_ = UTF8ToUTF16(username); 89 username_ = base::UTF8ToUTF16(username);
90 } 90 }
91 return self; 91 return self;
92 } 92 }
93 93
94 - (void)dealloc { 94 - (void)dealloc {
95 [super dealloc]; 95 [super dealloc];
96 } 96 }
97 97
98 - (IBAction)stopSharing:(id)sender { 98 - (IBAction)stopSharing:(id)sender {
99 if (!disconnect_callback_.is_null()) { 99 if (!disconnect_callback_.is_null()) {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 path = [NSBezierPath bezierPath]; 284 path = [NSBezierPath bezierPath];
285 [path moveToPoint:top]; 285 [path moveToPoint:top];
286 [path lineToPoint:bottom]; 286 [path lineToPoint:bottom];
287 [light setStroke]; 287 [light setStroke];
288 [path stroke]; 288 [path stroke];
289 289
290 [context setShouldAntialias:alias]; 290 [context setShouldAntialias:alias];
291 } 291 }
292 292
293 @end 293 @end
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_gtk.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698