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

Side by Side Diff: remoting/host/desktop_resizer_ozone.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 unified diff | Download patch
« no previous file with comments | « remoting/host/desktop_resizer_mac.cc ('k') | remoting/host/desktop_resizer_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/desktop_resizer.h" 5 #include "remoting/host/desktop_resizer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 12
12 class DesktopResizerOzone : public DesktopResizer { 13 class DesktopResizerOzone : public DesktopResizer {
13 public: 14 public:
14 DesktopResizerOzone(); 15 DesktopResizerOzone();
15 ~DesktopResizerOzone() override; 16 ~DesktopResizerOzone() override;
16 17
17 // DesktopResizer: 18 // DesktopResizer:
18 ScreenResolution GetCurrentResolution() override; 19 ScreenResolution GetCurrentResolution() override;
(...skipping 23 matching lines...) Expand all
42 return std::list<ScreenResolution>(); 43 return std::list<ScreenResolution>();
43 } 44 }
44 45
45 void DesktopResizerOzone::SetResolution(const ScreenResolution& resolution) { 46 void DesktopResizerOzone::SetResolution(const ScreenResolution& resolution) {
46 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
47 } 48 }
48 49
49 void DesktopResizerOzone::RestoreResolution(const ScreenResolution& original) { 50 void DesktopResizerOzone::RestoreResolution(const ScreenResolution& original) {
50 } 51 }
51 52
52 scoped_ptr<DesktopResizer> DesktopResizer::Create() { 53 std::unique_ptr<DesktopResizer> DesktopResizer::Create() {
53 return make_scoped_ptr(new DesktopResizerOzone); 54 return base::WrapUnique(new DesktopResizerOzone);
54 } 55 }
55 56
56 } // namespace remoting 57 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_resizer_mac.cc ('k') | remoting/host/desktop_resizer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698