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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should fix mac build Created 5 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_
7 7
8 #include "remoting/host/desktop_environment.h" 8 #include "remoting/host/desktop_environment.h"
9 #include "remoting/host/fake_desktop_capturer.h" 9 #include "remoting/host/fake_desktop_capturer.h"
10 #include "remoting/host/fake_mouse_cursor_monitor.h" 10 #include "remoting/host/fake_mouse_cursor_monitor.h"
11 #include "remoting/host/input_injector.h" 11 #include "remoting/host/input_injector.h"
12 #include "remoting/host/screen_controls.h" 12 #include "remoting/host/screen_controls.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class FakeInputInjector : public InputInjector { 16 class FakeInputInjector : public InputInjector {
17 public: 17 public:
18 FakeInputInjector(); 18 FakeInputInjector();
19 ~FakeInputInjector() override; 19 ~FakeInputInjector() override;
20 20
21 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; 21 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
22 void InjectKeyEvent(const protocol::KeyEvent& event) override; 22 void InjectKeyEvent(const protocol::KeyEvent& event) override;
23 void InjectTextEvent(const protocol::TextEvent& event) override; 23 void InjectTextEvent(const protocol::TextEvent& event) override;
24 void InjectMouseEvent(const protocol::MouseEvent& event) override; 24 void InjectMouseEvent(const protocol::MouseEvent& event) override;
25 void InjectTouchEvent(const protocol::TouchEvent& event) override; 25 void InjectTouchEvent(const protocol::TouchEvent& event) override;
26 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; 26 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override;
27 bool CanInjectTouch() override;
27 }; 28 };
28 29
29 class FakeScreenControls : public ScreenControls { 30 class FakeScreenControls : public ScreenControls {
30 public: 31 public:
31 FakeScreenControls(); 32 FakeScreenControls();
32 ~FakeScreenControls() override; 33 ~FakeScreenControls() override;
33 34
34 // ScreenControls implementation. 35 // ScreenControls implementation.
35 void SetScreenResolution(const ScreenResolution& resolution) override; 36 void SetScreenResolution(const ScreenResolution& resolution) override;
36 }; 37 };
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 private: 87 private:
87 FakeDesktopCapturer::FrameGenerator frame_generator_; 88 FakeDesktopCapturer::FrameGenerator frame_generator_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory); 90 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory);
90 }; 91 };
91 92
92 } // namespace remoting 93 } // namespace remoting
93 94
94 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ 95 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698