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

Unified Diff: remoting/host/desktop_resizer_android.cc

Issue 1863933002: [remoting android] Add and build host code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: Add resources_android.cc Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/curtain_mode_android.cc ('k') | remoting/host/disconnect_window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_resizer_android.cc
diff --git a/remoting/host/desktop_resizer_android.cc b/remoting/host/desktop_resizer_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..68e4b7e6b7ce6e7d0135b3ee38fe0602991b2cf2
--- /dev/null
+++ b/remoting/host/desktop_resizer_android.cc
@@ -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
« no previous file with comments | « remoting/host/curtain_mode_android.cc ('k') | remoting/host/disconnect_window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698