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

Side by Side Diff: ui/ozone/common/native_display_delegate_ozone.cc

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/demo/ozone_demo.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/ozone/common/native_display_delegate_ozone.h" 5 #include "ui/ozone/common/native_display_delegate_ozone.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "ui/ozone/common/display_snapshot_proxy.h" 9 #include "ui/ozone/common/display_snapshot_proxy.h"
10 #include "ui/ozone/common/display_util.h" 10 #include "ui/ozone/common/display_util.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() { 14 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() {
15 } 15 }
16 16
17 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() { 17 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
18 } 18 }
19 19
20 void NativeDisplayDelegateOzone::Initialize() { 20 void NativeDisplayDelegateOzone::Initialize() {
21 DisplaySnapshot_Params params; 21 DisplaySnapshot_Params params;
22 if (CreateSnapshotFromCommandLine(&params)) { 22 if (CreateSnapshotFromCommandLine(&params)) {
23 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type); 23 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
24 displays_.push_back(base::WrapUnique(new DisplaySnapshotProxy(params))); 24 displays_.push_back(base::MakeUnique<DisplaySnapshotProxy>(params));
25 } 25 }
26 } 26 }
27 27
28 void NativeDisplayDelegateOzone::GrabServer() { 28 void NativeDisplayDelegateOzone::GrabServer() {
29 NOTIMPLEMENTED(); 29 NOTIMPLEMENTED();
30 } 30 }
31 31
32 void NativeDisplayDelegateOzone::UngrabServer() { 32 void NativeDisplayDelegateOzone::UngrabServer() {
33 NOTIMPLEMENTED(); 33 NOTIMPLEMENTED();
34 } 34 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { 123 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
124 NOTIMPLEMENTED(); 124 NOTIMPLEMENTED();
125 } 125 }
126 126
127 void NativeDisplayDelegateOzone::RemoveObserver( 127 void NativeDisplayDelegateOzone::RemoveObserver(
128 NativeDisplayObserver* observer) { 128 NativeDisplayObserver* observer) {
129 NOTIMPLEMENTED(); 129 NOTIMPLEMENTED();
130 } 130 }
131 131
132 } // namespace ui 132 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698