Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: remoting/host/continue_window_win.cc

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698