1 // Copyright 2015 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.
5 #include "remoting/host/desktop_resizer.h"
7 #include "base/logging.h"
11 class DesktopResizerOzone
: public DesktopResizer
{
13 DesktopResizerOzone();
14 ~DesktopResizerOzone() override
;
17 ScreenResolution
GetCurrentResolution() override
;
18 std::list
<ScreenResolution
> GetSupportedResolutions(
19 const ScreenResolution
& preferred
) override
;
20 void SetResolution(const ScreenResolution
& resolution
) override
;
21 void RestoreResolution(const ScreenResolution
& original
) override
;
24 DISALLOW_COPY_AND_ASSIGN(DesktopResizerOzone
);
27 DesktopResizerOzone::DesktopResizerOzone() {
30 DesktopResizerOzone::~DesktopResizerOzone() {
33 ScreenResolution
DesktopResizerOzone::GetCurrentResolution() {
35 return ScreenResolution();
38 std::list
<ScreenResolution
> DesktopResizerOzone::GetSupportedResolutions(
39 const ScreenResolution
& preferred
) {
41 return std::list
<ScreenResolution
>();
44 void DesktopResizerOzone::SetResolution(const ScreenResolution
& resolution
) {
48 void DesktopResizerOzone::RestoreResolution(const ScreenResolution
& original
) {
51 scoped_ptr
<DesktopResizer
> DesktopResizer::Create() {
52 return make_scoped_ptr(new DesktopResizerOzone
);
55 } // namespace remoting