| 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 11 matching lines...) Expand all Loading... |
| 22 - (void)Hide; | 22 - (void)Hide; |
| 23 @end | 23 @end |
| 24 | 24 |
| 25 const int kMaximumConnectedNameWidthInPixels = 600; | 25 const int kMaximumConnectedNameWidthInPixels = 600; |
| 26 | 26 |
| 27 namespace remoting { | 27 namespace remoting { |
| 28 | 28 |
| 29 class DisconnectWindowMac : public HostWindow { | 29 class DisconnectWindowMac : public HostWindow { |
| 30 public: | 30 public: |
| 31 DisconnectWindowMac(); | 31 DisconnectWindowMac(); |
| 32 virtual ~DisconnectWindowMac(); | 32 ~DisconnectWindowMac() override; |
| 33 | 33 |
| 34 // HostWindow overrides. | 34 // HostWindow overrides. |
| 35 virtual void Start( | 35 void Start(const base::WeakPtr<ClientSessionControl>& client_session_control) |
| 36 const base::WeakPtr<ClientSessionControl>& client_session_control) | |
| 37 override; | 36 override; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 DisconnectWindowController* window_controller_; | 39 DisconnectWindowController* window_controller_; |
| 41 | 40 |
| 42 DISALLOW_COPY_AND_ASSIGN(DisconnectWindowMac); | 41 DISALLOW_COPY_AND_ASSIGN(DisconnectWindowMac); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 DisconnectWindowMac::DisconnectWindowMac() | 44 DisconnectWindowMac::DisconnectWindowMac() |
| 46 : window_controller_(nil) { | 45 : window_controller_(nil) { |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 path = [NSBezierPath bezierPath]; | 283 path = [NSBezierPath bezierPath]; |
| 285 [path moveToPoint:top]; | 284 [path moveToPoint:top]; |
| 286 [path lineToPoint:bottom]; | 285 [path lineToPoint:bottom]; |
| 287 [light setStroke]; | 286 [light setStroke]; |
| 288 [path stroke]; | 287 [path stroke]; |
| 289 | 288 |
| 290 [context setShouldAntialias:alias]; | 289 [context setShouldAntialias:alias]; |
| 291 } | 290 } |
| 292 | 291 |
| 293 @end | 292 @end |
| OLD | NEW |