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

Unified Diff: remoting/host/win/host_service.h

Issue 13142002: Moved code implementing message-only windows to a dedicated class (Windows only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/local_input_monitor_win.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/host_service.h
diff --git a/remoting/host/win/host_service.h b/remoting/host/win/host_service.h
index 942f3fadaf71122f4c1ba076c84a3dd68fec22bb..aa1d9ab5f1505ca988fccb20778a065045631ee2 100644
--- a/remoting/host/win/host_service.h
+++ b/remoting/host/win/host_service.h
@@ -13,6 +13,7 @@
#include "base/memory/singleton.h"
#include "base/synchronization/waitable_event.h"
#include "net/base/ip_endpoint.h"
+#include "remoting/host/win/message_window.h"
#include "remoting/host/win/wts_terminal_monitor.h"
class CommandLine;
@@ -27,7 +28,8 @@ class AutoThreadTaskRunner;
class Stoppable;
class WtsTerminalObserver;
-class HostService : public WtsTerminalMonitor {
+class HostService : public win::MessageWindow::Delegate,
+ public WtsTerminalMonitor {
public:
static HostService* GetInstance();
@@ -68,6 +70,13 @@ class HostService : public WtsTerminalMonitor {
// console application).
int RunInConsole();
+ // win::MessageWindow::Delegate interface.
+ virtual bool HandleMessage(HWND hwnd,
+ UINT message,
+ WPARAM wparam,
+ LPARAM lparam,
+ LRESULT* result) OVERRIDE;
+
static BOOL WINAPI ConsoleControlHandler(DWORD event);
// The control handler of the service.
@@ -79,11 +88,6 @@ class HostService : public WtsTerminalMonitor {
// The main service entry point.
static VOID WINAPI ServiceMain(DWORD argc, WCHAR* argv[]);
- static LRESULT CALLBACK SessionChangeNotificationProc(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam);
-
struct RegisteredObserver {
// Specifies the client address of an RDP connection or IPEndPoint() for
// the physical console.
« no previous file with comments | « remoting/host/local_input_monitor_win.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698