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

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

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // DisconnectWindowController is responsible for releasing itself in its 54 // DisconnectWindowController is responsible for releasing itself in its
55 // windowWillClose: method. 55 // windowWillClose: method.
56 [window_controller_ Hide]; 56 [window_controller_ Hide];
57 window_controller_ = nil; 57 window_controller_ = nil;
58 } 58 }
59 59
60 void DisconnectWindowMac::Start( 60 void DisconnectWindowMac::Start(
61 const base::WeakPtr<ClientSessionControl>& client_session_control) { 61 const base::WeakPtr<ClientSessionControl>& client_session_control) {
62 DCHECK(CalledOnValidThread()); 62 DCHECK(CalledOnValidThread());
63 DCHECK(client_session_control); 63 DCHECK(client_session_control);
64 DCHECK(!disconnect_window_);
65 64
66 // Create the window. 65 // Create the window.
67 base::Closure disconnect_callback = 66 base::Closure disconnect_callback =
68 base::Bind(&ClientSessionControl::DisconnectSession, 67 base::Bind(&ClientSessionControl::DisconnectSession,
69 client_session_control); 68 client_session_control);
70 std::string client_jid = client_session_control->client_jid(); 69 std::string client_jid = client_session_control->client_jid();
71 std::string username = client_jid.substr(0, client_jid.find('/')); 70 std::string username = client_jid.substr(0, client_jid.find('/'));
72 window_controller_ = 71 window_controller_ =
73 [[DisconnectWindowController alloc] initWithUiStrings:&ui_strings_ 72 [[DisconnectWindowController alloc] initWithUiStrings:&ui_strings_
74 callback:disconnect_callback 73 callback:disconnect_callback
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 path = [NSBezierPath bezierPath]; 292 path = [NSBezierPath bezierPath];
294 [path moveToPoint:top]; 293 [path moveToPoint:top];
295 [path lineToPoint:bottom]; 294 [path lineToPoint:bottom];
296 [light setStroke]; 295 [light setStroke];
297 [path stroke]; 296 [path stroke];
298 297
299 [context setShouldAntialias:alias]; 298 [context setShouldAntialias:alias];
300 } 299 }
301 300
302 @end 301 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698