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

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

Issue 11761019: Tiny little refactoring of DesktopEnvironment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_environment_factory.cc ('k') | remoting/host/desktop_environment_fake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_DESKTOP_ENVIRONMENT_FAKE_H_
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_
7
8 #include "remoting/host/desktop_environment.h"
9
10 namespace remoting {
11
12 class VideoScheduler;
13
14 // A dummy implementation of |DesktopEnvironment| that does nothing.
15 class DesktopEnvironmentFake : public DesktopEnvironment {
16 public:
17 explicit DesktopEnvironmentFake(
18 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner);
19 virtual ~DesktopEnvironmentFake();
20
21 // protocol::ClipboardStub implementation.
22 virtual void InjectClipboardEvent(
23 const protocol::ClipboardEvent& event) OVERRIDE;
24
25 // protocol::InputStub implementation.
26 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE;
27 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE;
28
29 // DesktopEnvironment implementation.
30 virtual void StartAudio(
31 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
32 scoped_ptr<AudioEncoder> audio_encoder,
33 protocol::AudioStub* audio_stub) OVERRIDE;
34 virtual void PauseAudio(bool pause) OVERRIDE;
35 virtual void StartInput(
36 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
37 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
38 protocol::ClipboardStub* clipboard_stub) OVERRIDE;
39 virtual void StartVideo(
40 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
41 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner,
42 scoped_ptr<VideoEncoder> video_encoder,
43 protocol::CursorShapeStub* cursor_shape_stub,
44 protocol::VideoStub* video_stub) OVERRIDE;
45 virtual SkISize GetScreenSize() const OVERRIDE;
46 virtual void PauseVideo(bool pause) OVERRIDE;
47 virtual void UpdateSequenceNumber(int64 sequence_number) OVERRIDE;
48
49 private:
50 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_;
51
52 scoped_refptr<VideoScheduler> video_scheduler_;
53
54 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFake);
55 };
56
57 } // namespace remoting
58
59 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment_factory.cc ('k') | remoting/host/desktop_environment_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698