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

Side by Side Diff: remoting/host/single_window_input_injector.h

Issue 422503004: Adding ability to stream windows and inject events to them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added exit code to remoting_host when unable to parse window_id Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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_SINGLE_WINDOW_INPUT_INJECTOR_H_
6 #define REMOTING_HOST_SINGLE_WINDOW_INPUT_INJECTOR_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "remoting/host/input_injector.h"
10 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
11
12 namespace remoting {
13
14 // This class is used to wrap an InputInjector. All this class does
15 // is forward messages to the wrapped InputInjector. When a MouseEvent
16 // comes in, SingleWindowInputInjector adjusts the MouseEvent's
17 // coordinates so that they are in respect to the window instead of
18 // the desktop. Clipboard, Text, and Key events are still global.
19 class SingleWindowInputInjector : public InputInjector {
20 public:
21 // This Create method needs to be passed a full desktop
22 // InputInjector.
23 static scoped_ptr<InputInjector> Create(
Sergey Ulanov 2014/08/12 18:18:00 You need to add stubs for this method for Linux an
ronakvora do not use 2014/08/13 18:04:44 Done.
24 webrtc::WindowId window_id,
25 scoped_ptr<InputInjector> input_injector);
26 };
27
28 } // namespace remoting
29
30 #endif // REMOTING_HOST_SINGLE_WINDOW_INPUT_INJECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698