| 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 <windows.h> | 5 #include <windows.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/process/memory.h" | 9 #include "base/process/memory.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const int kWindowTextMargin = 8; | 33 const int kWindowTextMargin = 8; |
| 34 | 34 |
| 35 class DisconnectWindowWin : public HostWindow { | 35 class DisconnectWindowWin : public HostWindow { |
| 36 public: | 36 public: |
| 37 DisconnectWindowWin(); | 37 DisconnectWindowWin(); |
| 38 virtual ~DisconnectWindowWin(); | 38 virtual ~DisconnectWindowWin(); |
| 39 | 39 |
| 40 // HostWindow overrides. | 40 // HostWindow overrides. |
| 41 virtual void Start( | 41 virtual void Start( |
| 42 const base::WeakPtr<ClientSessionControl>& client_session_control) | 42 const base::WeakPtr<ClientSessionControl>& client_session_control) |
| 43 OVERRIDE; | 43 override; |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT message, WPARAM wparam, | 46 static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT message, WPARAM wparam, |
| 47 LPARAM lparam); | 47 LPARAM lparam); |
| 48 | 48 |
| 49 BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); | 49 BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); |
| 50 | 50 |
| 51 // Creates the dialog window and registers the disconnect hot key. | 51 // Creates the dialog window and registers the disconnect hot key. |
| 52 bool BeginDialog(); | 52 bool BeginDialog(); |
| 53 | 53 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace | 393 } // namespace |
| 394 | 394 |
| 395 // static | 395 // static |
| 396 scoped_ptr<HostWindow> HostWindow::CreateDisconnectWindow() { | 396 scoped_ptr<HostWindow> HostWindow::CreateDisconnectWindow() { |
| 397 return make_scoped_ptr(new DisconnectWindowWin()); | 397 return make_scoped_ptr(new DisconnectWindowWin()); |
| 398 } | 398 } |
| 399 | 399 |
| 400 } // namespace remoting | 400 } // namespace remoting |
| OLD | NEW |