| OLD | NEW |
| 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 <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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 return self; | 83 return self; |
| 84 } | 84 } |
| 85 | 85 |
| 86 - (void)dealloc { | 86 - (void)dealloc { |
| 87 [username_ release]; | 87 [username_ release]; |
| 88 [super dealloc]; | 88 [super dealloc]; |
| 89 } | 89 } |
| 90 | 90 |
| 91 - (IBAction)stopSharing:(id)sender { | 91 - (IBAction)stopSharing:(id)sender { |
| 92 if (self.host) { | 92 if (self.host) { |
| 93 self.host->Shutdown(NULL); | 93 self.host->Shutdown(base::Closure()); |
| 94 self.host = NULL; | 94 self.host = NULL; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 - (BOOL)isRToL { | 98 - (BOOL)isRToL { |
| 99 return host_->ui_strings().direction == remoting::UiStrings::RTL; | 99 return host_->ui_strings().direction == remoting::UiStrings::RTL; |
| 100 } | 100 } |
| 101 | 101 |
| 102 - (void)close { | 102 - (void)close { |
| 103 self.host = NULL; | 103 self.host = NULL; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 path = [NSBezierPath bezierPath]; | 278 path = [NSBezierPath bezierPath]; |
| 279 [path moveToPoint:top]; | 279 [path moveToPoint:top]; |
| 280 [path lineToPoint:bottom]; | 280 [path lineToPoint:bottom]; |
| 281 [light setStroke]; | 281 [light setStroke]; |
| 282 [path stroke]; | 282 [path stroke]; |
| 283 | 283 |
| 284 [context setShouldAntialias:alias]; | 284 [context setShouldAntialias:alias]; |
| 285 } | 285 } |
| 286 | 286 |
| 287 @end | 287 @end |
| OLD | NEW |