forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[remoting android] Add and build host code.
BUG=602355 Review URL: https://codereview.chromium.org/1863933002 Cr-Commit-Position: refs/heads/master@{#387103}
- Loading branch information
lambroslambrou
authored and
Commit bot
committed
Apr 13, 2016
1 parent
bbf2503
commit 51e19b9
Showing
22 changed files
with
360 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/logging.h" | ||
#include "remoting/host/audio_capturer.h" | ||
|
||
namespace remoting { | ||
|
||
bool AudioCapturer::IsSupported() { | ||
return false; | ||
} | ||
|
||
std::unique_ptr<AudioCapturer> AudioCapturer::Create() { | ||
NOTIMPLEMENTED(); | ||
return nullptr; | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/logging.h" | ||
#include "base/macros.h" | ||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/continue_window.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class ContinueWindowAndroid : public ContinueWindow { | ||
public: | ||
ContinueWindowAndroid() {} | ||
|
||
protected: | ||
// ContinueWindow overrides. | ||
void ShowUi() override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void HideUi() override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
DISALLOW_COPY_AND_ASSIGN(ContinueWindowAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
// static | ||
std::unique_ptr<HostWindow> HostWindow::CreateContinueWindow() { | ||
return base::WrapUnique(new ContinueWindowAndroid()); | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/logging.h" | ||
#include "base/macros.h" | ||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/curtain_mode.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class CurtainModeAndroid : public CurtainMode { | ||
public: | ||
CurtainModeAndroid() {} | ||
|
||
// Overriden from CurtainMode. | ||
bool Activate() override { | ||
NOTIMPLEMENTED(); | ||
return false; | ||
} | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(CurtainModeAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
// static | ||
std::unique_ptr<CurtainMode> CurtainMode::Create( | ||
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | ||
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | ||
base::WeakPtr<ClientSessionControl> client_session_control) { | ||
return base::WrapUnique(new CurtainModeAndroid()); | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/logging.h" | ||
#include "base/macros.h" | ||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/desktop_resizer.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class DesktopResizerAndroid : public DesktopResizer { | ||
public: | ||
DesktopResizerAndroid() {} | ||
|
||
// DesktopResizer: | ||
ScreenResolution GetCurrentResolution() override { | ||
NOTIMPLEMENTED(); | ||
return ScreenResolution(); | ||
} | ||
|
||
std::list<ScreenResolution> GetSupportedResolutions( | ||
const ScreenResolution& preferred) override { | ||
NOTIMPLEMENTED(); | ||
return std::list<ScreenResolution>(); | ||
} | ||
|
||
void SetResolution(const ScreenResolution& resolution) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void RestoreResolution(const ScreenResolution& original) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(DesktopResizerAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
// static | ||
std::unique_ptr<DesktopResizer> DesktopResizer::Create() { | ||
return base::WrapUnique(new DesktopResizerAndroid); | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/logging.h" | ||
#include "base/macros.h" | ||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/host_window.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class DisconnectWindowAndroid : public HostWindow { | ||
public: | ||
DisconnectWindowAndroid() {} | ||
|
||
// HostWindow interface. | ||
void Start(const base::WeakPtr<ClientSessionControl>& client_session_control) | ||
override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(DisconnectWindowAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
// static | ||
std::unique_ptr<HostWindow> HostWindow::CreateDisconnectWindow() { | ||
return base::WrapUnique(new DisconnectWindowAndroid()); | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/input_injector.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class InputInjectorAndroid : public InputInjector { | ||
public: | ||
InputInjectorAndroid() {} | ||
|
||
void InjectClipboardEvent(const protocol::ClipboardEvent& event) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void InjectKeyEvent(const protocol::KeyEvent& event) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void InjectTextEvent(const protocol::TextEvent& event) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void InjectMouseEvent(const protocol::MouseEvent& event) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void InjectTouchEvent(const protocol::TouchEvent& event) override { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void Start( | ||
std::unique_ptr<protocol::ClipboardStub> client_clipboard) override {} | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
// static | ||
std::unique_ptr<InputInjector> InputInjector::Create( | ||
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | ||
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | ||
return base::WrapUnique(new InputInjectorAndroid()); | ||
} | ||
|
||
// static | ||
bool InputInjector::SupportsTouchEvents() { | ||
return false; | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2016 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. | ||
|
||
#include "base/memory/ptr_util.h" | ||
#include "remoting/host/local_input_monitor.h" | ||
|
||
namespace remoting { | ||
|
||
namespace { | ||
|
||
class LocalInputMonitorAndroid : public LocalInputMonitor { | ||
public: | ||
LocalInputMonitorAndroid() {} | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorAndroid); | ||
}; | ||
|
||
} // namespace | ||
|
||
std::unique_ptr<LocalInputMonitor> LocalInputMonitor::Create( | ||
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | ||
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | ||
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | ||
base::WeakPtr<ClientSessionControl> client_session_control) { | ||
return base::WrapUnique(new LocalInputMonitorAndroid()); | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.