| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |