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 16 matching lines...) Expand all Loading... |
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 virtual ~DisconnectWindowMac(); |
33 | 33 |
34 // HostWindow overrides. | 34 // HostWindow overrides. |
35 virtual void Start( | 35 virtual void Start( |
36 const base::WeakPtr<ClientSessionControl>& client_session_control) | 36 const base::WeakPtr<ClientSessionControl>& client_session_control) |
37 OVERRIDE; | 37 override; |
38 | 38 |
39 private: | 39 private: |
40 DisconnectWindowController* window_controller_; | 40 DisconnectWindowController* window_controller_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(DisconnectWindowMac); | 42 DISALLOW_COPY_AND_ASSIGN(DisconnectWindowMac); |
43 }; | 43 }; |
44 | 44 |
45 DisconnectWindowMac::DisconnectWindowMac() | 45 DisconnectWindowMac::DisconnectWindowMac() |
46 : window_controller_(nil) { | 46 : window_controller_(nil) { |
47 } | 47 } |
(...skipping 236 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 |