| Index: remoting/host/me2me_single_window_desktop_environment.h
|
| diff --git a/remoting/host/me2me_single_window_desktop_environment.h b/remoting/host/me2me_single_window_desktop_environment.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..397e1ec5e30413610297f243038462dd50b0a031
|
| --- /dev/null
|
| +++ b/remoting/host/me2me_single_window_desktop_environment.h
|
| @@ -0,0 +1,60 @@
|
| +// Copyright 2014 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_WINDOW_DESKTOP_ENVIRONMENT_H_
|
| +#define REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
|
| +
|
| +#include "remoting/host/basic_desktop_environment.h"
|
| +#include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
|
| +
|
| +namespace remoting {
|
| +// Enables capturing and streaming of windows.
|
| +class SingleWindowDesktopEnvironment :
|
| + public BasicDesktopEnvironment {
|
| + public:
|
| + virtual ~SingleWindowDesktopEnvironment();
|
| +
|
| + // DesktopEnvironment interface.
|
| + virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
|
| + virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
|
| +
|
| + protected:
|
| + friend class SingleWindowDesktopEnvironmentFactory;
|
| + SingleWindowDesktopEnvironment(
|
| + scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
|
| +
|
| + void SetWindowId(webrtc::WindowId windowIdEnvironment);
|
| +
|
| + private:
|
| + webrtc::WindowId window_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironment);
|
| +};
|
| +
|
| +// Used to create |SingleWindowDesktopEnvironment| instances.
|
| +class SingleWindowDesktopEnvironmentFactory :
|
| + public BasicDesktopEnvironmentFactory {
|
| + public:
|
| + SingleWindowDesktopEnvironmentFactory(
|
| + scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
|
| + webrtc::WindowId windowId);
|
| + virtual ~SingleWindowDesktopEnvironmentFactory();
|
| +
|
| + // DesktopEnvironmentFactory interface.
|
| + virtual scoped_ptr<DesktopEnvironment> Create(
|
| + base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
|
| +
|
| + private:
|
| + webrtc::WindowId window_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
|
|
|