Chromium Code Reviews| 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 <atlwin.h> | |
| 13 #include <atluser.h> | |
|
alexeypa (please no reviews)
2012/10/11 16:57:52
nit: swap atlwin and atluser
simonmorris
2012/10/11 21:27:35
Done.
| |
| 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 // Sets an appropriate initial position for the dialog. | |
|
alexeypa (please no reviews)
2012/10/11 16:57:52
nit: Separate the message handlers from the follow
simonmorris
2012/10/11 21:27:35
Done.
| |
| 42 void PositionWindow(); | |
| 43 | |
| 44 net::URLRequestContextGetter* url_request_context_getter_; | |
|
alexeypa (please no reviews)
2012/10/11 16:57:52
scoped_reptf? Please add a quick comment what this
simonmorris
2012/10/11 21:27:35
I don't think scoped_refptr adds anything here. Th
alexeypa (please no reviews)
2012/10/12 17:09:35
It is not apparent from the code. scoped_refptr pr
simonmorris
2012/10/15 16:51:41
One result of that guarantee is that it becomes im
alexeypa (please no reviews)
2012/10/15 18:48:55
It is not possible to know without scoped_refptr a
Sergey Ulanov
2012/10/15 23:44:26
+1 on this. Using raw pointer for ref-counted obje
| |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(HostConfigurerWindow); | |
| 47 }; | |
| 48 | |
| 49 } // namespace remoting | |
| 50 | |
| 51 #endif // REMOTING_HOST_SETUP_WIN_HOST_CONFIGURER_WINDOW_H_ | |
| OLD | NEW |