| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <windows.h> | 7 #include <windows.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" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 case WM_COMMAND: | 88 case WM_COMMAND: |
| 89 switch (LOWORD(wParam)) { | 89 switch (LOWORD(wParam)) { |
| 90 case IDC_CONTINUE_DEFAULT: | 90 case IDC_CONTINUE_DEFAULT: |
| 91 CHECK(host_); | 91 CHECK(host_); |
| 92 host_->PauseSession(false); | 92 host_->PauseSession(false); |
| 93 ::EndDialog(hwnd, LOWORD(wParam)); | 93 ::EndDialog(hwnd, LOWORD(wParam)); |
| 94 hwnd_ = NULL; | 94 hwnd_ = NULL; |
| 95 return TRUE; | 95 return TRUE; |
| 96 case IDC_CONTINUE_CANCEL: | 96 case IDC_CONTINUE_CANCEL: |
| 97 CHECK(host_); | 97 CHECK(host_); |
| 98 host_->Shutdown(NULL); | 98 host_->Shutdown(base::Closure()); |
| 99 ::EndDialog(hwnd, LOWORD(wParam)); | 99 ::EndDialog(hwnd, LOWORD(wParam)); |
| 100 hwnd_ = NULL; | 100 hwnd_ = NULL; |
| 101 return TRUE; | 101 return TRUE; |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 return FALSE; | 104 return FALSE; |
| 105 } | 105 } |
| 106 | 106 |
| 107 void ContinueWindowWin::Show(ChromotingHost* host) { | 107 void ContinueWindowWin::Show(ChromotingHost* host) { |
| 108 host_ = host; | 108 host_ = host; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 HWND hwndCancel = GetDlgItem(hwnd_, IDC_CONTINUE_CANCEL); | 144 HWND hwndCancel = GetDlgItem(hwnd_, IDC_CONTINUE_CANCEL); |
| 145 CHECK(hwndCancel); | 145 CHECK(hwndCancel); |
| 146 SetWindowText(hwndCancel, strings.stop_sharing_button_text.c_str()); | 146 SetWindowText(hwndCancel, strings.stop_sharing_button_text.c_str()); |
| 147 } | 147 } |
| 148 | 148 |
| 149 ContinueWindow* ContinueWindow::Create() { | 149 ContinueWindow* ContinueWindow::Create() { |
| 150 return new ContinueWindowWin(); | 150 return new ContinueWindowWin(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace remoting | 153 } // namespace remoting |
| OLD | NEW |