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 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/mac/scoped_nsautorelease_pool.h" | 9 #include "base/mac/scoped_nsautorelease_pool.h" |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/macros.h" |
11 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
12 #include "remoting/base/string_resources.h" | 13 #include "remoting/base/string_resources.h" |
13 #include "remoting/host/continue_window.h" | 14 #include "remoting/host/continue_window.h" |
14 #include "ui/base/l10n/l10n_util_mac.h" | 15 #include "ui/base/l10n/l10n_util_mac.h" |
15 | 16 |
16 // Handles the ContinueWindow. | 17 // Handles the ContinueWindow. |
17 @interface ContinueWindowMacController : NSObject { | 18 @interface ContinueWindowMacController : NSObject { |
18 @private | 19 @private |
19 base::scoped_nsobject<NSMutableArray> shades_; | 20 base::scoped_nsobject<NSMutableArray> shades_; |
20 base::scoped_nsobject<NSAlert> continue_alert_; | 21 base::scoped_nsobject<NSAlert> continue_alert_; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 [self hide]; | 156 [self hide]; |
156 continue_window_->DisconnectSession(); | 157 continue_window_->DisconnectSession(); |
157 } | 158 } |
158 | 159 |
159 - (void)onContinue:(id)sender { | 160 - (void)onContinue:(id)sender { |
160 [self hide]; | 161 [self hide]; |
161 continue_window_->ContinueSession(); | 162 continue_window_->ContinueSession(); |
162 } | 163 } |
163 | 164 |
164 @end | 165 @end |
OLD | NEW |