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