| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_SETUP_WIN_HOST_CONFIGURER_WINDOW_H_ |
| 6 #define REMOTING_HOST_SETUP_WIN_HOST_CONFIGURER_WINDOW_H_ |
| 7 |
| 8 // altbase.h must be included before atlapp.h |
| 9 #include <atlbase.h> |
| 10 #include <atlapp.h> |
| 11 #include <atlcrack.h> |
| 12 #include <atluser.h> |
| 13 #include <atlwin.h> |
| 14 #include <string> |
| 15 |
| 16 #include "base/basictypes.h" |
| 17 #include "net/url_request/url_request_context_getter.h" |
| 18 #include "remoting/host/setup/win/host_configurer_resource.h" |
| 19 |
| 20 namespace remoting { |
| 21 |
| 22 class HostConfigurerWindow : public ATL::CDialogImpl<HostConfigurerWindow> { |
| 23 public: |
| 24 enum { IDD = IDD_MAIN }; |
| 25 |
| 26 BEGIN_MSG_MAP_EX(HostConfigurerWindow) |
| 27 MSG_WM_INITDIALOG(OnInitDialog) |
| 28 MSG_WM_CLOSE(OnClose) |
| 29 COMMAND_ID_HANDLER_EX(IDC_START_HOST, OnStartHost) |
| 30 END_MSG_MAP() |
| 31 |
| 32 HostConfigurerWindow( |
| 33 net::URLRequestContextGetter* url_request_context_getter); |
| 34 |
| 35 private: |
| 36 void OnCancel(UINT code, int id, HWND control); |
| 37 void OnClose(); |
| 38 LRESULT OnInitDialog(HWND wparam, LPARAM lparam); |
| 39 void OnOk(UINT code, int id, HWND control); |
| 40 void OnStartHost(UINT code, int id, HWND control); |
| 41 |
| 42 // Sets an appropriate initial position for the dialog. |
| 43 void PositionWindow(); |
| 44 |
| 45 // Context needed to start the host. |
| 46 net::URLRequestContextGetter* url_request_context_getter_; |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(HostConfigurerWindow); |
| 49 }; |
| 50 |
| 51 } // namespace remoting |
| 52 |
| 53 #endif // REMOTING_HOST_SETUP_WIN_HOST_CONFIGURER_WINDOW_H_ |
| OLD | NEW |