OLD | NEW |
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(¶ms)) { | 22 if (CreateSnapshotFromCommandLine(¶ms)) { |
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 Loading... |
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 |
OLD | NEW |