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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 - (void)onContinue:(id)sender; | 28 - (void)onContinue:(id)sender; |
29 @end | 29 @end |
30 | 30 |
31 namespace remoting { | 31 namespace remoting { |
32 | 32 |
33 // A bridge between C++ and ObjC implementations of ContinueWindow. | 33 // A bridge between C++ and ObjC implementations of ContinueWindow. |
34 // Everything important occurs in ContinueWindowMacController. | 34 // Everything important occurs in ContinueWindowMacController. |
35 class ContinueWindowMac : public ContinueWindow { | 35 class ContinueWindowMac : public ContinueWindow { |
36 public: | 36 public: |
37 ContinueWindowMac(); | 37 ContinueWindowMac(); |
38 virtual ~ContinueWindowMac(); | 38 ~ContinueWindowMac() override; |
39 | 39 |
40 protected: | 40 protected: |
41 // ContinueWindow overrides. | 41 // ContinueWindow overrides. |
42 virtual void ShowUi() override; | 42 void ShowUi() override; |
43 virtual void HideUi() override; | 43 void HideUi() override; |
44 | 44 |
45 private: | 45 private: |
46 base::scoped_nsobject<ContinueWindowMacController> controller_; | 46 base::scoped_nsobject<ContinueWindowMacController> controller_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(ContinueWindowMac); | 48 DISALLOW_COPY_AND_ASSIGN(ContinueWindowMac); |
49 }; | 49 }; |
50 | 50 |
51 ContinueWindowMac::ContinueWindowMac() { | 51 ContinueWindowMac::ContinueWindowMac() { |
52 } | 52 } |
53 | 53 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 [self hide]; | 155 [self hide]; |
156 continue_window_->DisconnectSession(); | 156 continue_window_->DisconnectSession(); |
157 } | 157 } |
158 | 158 |
159 - (void)onContinue:(id)sender { | 159 - (void)onContinue:(id)sender { |
160 [self hide]; | 160 [self hide]; |
161 continue_window_->ContinueSession(); | 161 continue_window_->ContinueSession(); |
162 } | 162 } |
163 | 163 |
164 @end | 164 @end |
OLD | NEW |