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

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

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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
« no previous file with comments | « remoting/host/disconnect_window_linux.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) 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
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
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
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_linux.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698