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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/process/memory.h" | 12 #include "base/process/memory.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "remoting/host/continue_window.h" | 15 #include "remoting/host/continue_window.h" |
16 #include "remoting/host/win/core_resource.h" | 16 #include "remoting/host/win/core_resource.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class ContinueWindowWin : public ContinueWindow { | 22 class ContinueWindowWin : public ContinueWindow { |
23 public: | 23 public: |
24 ContinueWindowWin(); | 24 ContinueWindowWin(); |
25 virtual ~ContinueWindowWin(); | 25 virtual ~ContinueWindowWin(); |
26 | 26 |
27 protected: | 27 protected: |
28 // ContinueWindow overrides. | 28 // ContinueWindow overrides. |
29 virtual void ShowUi() OVERRIDE; | 29 virtual void ShowUi() override; |
30 virtual void HideUi() OVERRIDE; | 30 virtual void HideUi() override; |
31 | 31 |
32 private: | 32 private: |
33 static BOOL CALLBACK DialogProc(HWND hwmd, UINT msg, WPARAM wParam, | 33 static BOOL CALLBACK DialogProc(HWND hwmd, UINT msg, WPARAM wParam, |
34 LPARAM lParam); | 34 LPARAM lParam); |
35 | 35 |
36 BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); | 36 BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); |
37 | 37 |
38 void EndDialog(); | 38 void EndDialog(); |
39 | 39 |
40 HWND hwnd_; | 40 HWND hwnd_; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 126 } |
127 | 127 |
128 } // namespace | 128 } // namespace |
129 | 129 |
130 // static | 130 // static |
131 scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() { | 131 scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() { |
132 return make_scoped_ptr(new ContinueWindowWin()); | 132 return make_scoped_ptr(new ContinueWindowWin()); |
133 } | 133 } |
134 | 134 |
135 } // namespace remoting | 135 } // namespace remoting |
OLD | NEW |