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

Unified Diff: remoting/host/session_event_executor_win.h

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 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/sas_injector_win.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/session_event_executor_win.h
diff --git a/remoting/host/session_event_executor_win.h b/remoting/host/session_event_executor_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e33c4459c541be38a785acba0034e9820583c72
--- /dev/null
+++ b/remoting/host/session_event_executor_win.h
@@ -0,0 +1,58 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
+#define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "ipc/ipc_channel.h"
+
+#include "remoting/host/event_executor.h"
+#include "remoting/protocol/input_stub.h"
+
+class MessageLoop;
+
+namespace base {
+class MessageLoopProxy;
+} // namespace base
+
+namespace IPC {
+class ChannelProxy;
+} // namespace IPC
+
+namespace remoting {
+
+class SessionEventExecutorWin : public protocol::InputStub,
+ public IPC::Channel::Listener {
+ public:
+ SessionEventExecutorWin(MessageLoop* message_loop,
+ base::MessageLoopProxy* io_message_loop,
+ scoped_ptr<protocol::InputStub> nested_executor);
+ ~SessionEventExecutorWin();
+
+ // protocol::InputStub implementation.
+ virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE;
+ virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE;
+
+ // IPC::Channel::Listener implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ // Pointer to the next event executor.
+ scoped_ptr<protocol::InputStub> nested_executor_;
+
+ MessageLoop* message_loop_;
+
+ // The Chromoting IPC channel connecting the host with the service.
+ scoped_ptr<IPC::ChannelProxy> chromoting_channel_;
+
+ bool scroll_pressed_;
+
+ DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
« no previous file with comments | « remoting/host/sas_injector_win.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698