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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
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 "ui/ozone/common/display_snapshot_proxy.h" 9 #include "ui/ozone/common/display_snapshot_proxy.h"
9 #include "ui/ozone/common/display_util.h" 10 #include "ui/ozone/common/display_util.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() { 14 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() {
14 } 15 }
15 16
16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() { 17 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
17 } 18 }
18 19
19 void NativeDisplayDelegateOzone::Initialize() { 20 void NativeDisplayDelegateOzone::Initialize() {
20 DisplaySnapshot_Params params; 21 DisplaySnapshot_Params params;
21 if (CreateSnapshotFromCommandLine(&params)) { 22 if (CreateSnapshotFromCommandLine(&params)) {
22 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type); 23 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
23 displays_.push_back(make_scoped_ptr(new DisplaySnapshotProxy(params))); 24 displays_.push_back(base::WrapUnique(new DisplaySnapshotProxy(params)));
24 } 25 }
25 } 26 }
26 27
27 void NativeDisplayDelegateOzone::GrabServer() { 28 void NativeDisplayDelegateOzone::GrabServer() {
28 NOTIMPLEMENTED(); 29 NOTIMPLEMENTED();
29 } 30 }
30 31
31 void NativeDisplayDelegateOzone::UngrabServer() { 32 void NativeDisplayDelegateOzone::UngrabServer() {
32 NOTIMPLEMENTED(); 33 NOTIMPLEMENTED();
33 } 34 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { 123 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
123 NOTIMPLEMENTED(); 124 NOTIMPLEMENTED();
124 } 125 }
125 126
126 void NativeDisplayDelegateOzone::RemoveObserver( 127 void NativeDisplayDelegateOzone::RemoveObserver(
127 NativeDisplayObserver* observer) { 128 NativeDisplayObserver* observer) {
128 NOTIMPLEMENTED(); 129 NOTIMPLEMENTED();
129 } 130 }
130 131
131 } // namespace ui 132 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/common/stub_client_native_pixmap_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698