| 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 #include "remoting/host/continue_window.h" | 5 #include "remoting/host/continue_window.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/mac/scoped_nsautorelease_pool.h" | 11 #include "base/mac/scoped_nsautorelease_pool.h" |
| 12 #include "base/memory/scoped_nsobject.h" | 12 #include "base/memory/scoped_nsobject.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 14 #include "remoting/host/ui_strings.h" | 14 #include "remoting/host/ui_strings.h" |
| 15 | 15 |
| 16 typedef remoting::ContinueWindow::ContinueSessionCallback | 16 typedef remoting::ContinueWindow::ContinueSessionCallback |
| 17 ContinueSessionCallback; | 17 ContinueSessionCallback; |
| 18 | 18 |
| 19 // Handles the ContinueWindow. | 19 // Handles the ContinueWindow. |
| 20 @interface ContinueWindowMacController : NSObject { | 20 @interface ContinueWindowMacController : NSObject { |
| 21 @private | 21 @private |
| 22 scoped_nsobject<NSMutableArray> shades_; | 22 scoped_nsobject<NSMutableArray> shades_; |
| 23 scoped_nsobject<NSAlert> continue_alert_; | 23 scoped_nsobject<NSAlert> continue_alert_; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 [self hide]; | 162 [self hide]; |
| 163 callback_.Run(false); | 163 callback_.Run(false); |
| 164 } | 164 } |
| 165 | 165 |
| 166 - (void)onContinue:(id)sender { | 166 - (void)onContinue:(id)sender { |
| 167 [self hide]; | 167 [self hide]; |
| 168 callback_.Run(true); | 168 callback_.Run(true); |
| 169 } | 169 } |
| 170 | 170 |
| 171 @end | 171 @end |
| OLD | NEW |