| 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 "ui/ozone/common/display_snapshot_proxy.h" | 8 #include "ui/ozone/common/display_snapshot_proxy.h" |
| 9 #include "ui/ozone/common/display_util.h" | 9 #include "ui/ozone/common/display_util.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() { | 13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() { | 16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void NativeDisplayDelegateOzone::Initialize() { | 19 void NativeDisplayDelegateOzone::Initialize() { |
| 20 DisplaySnapshot_Params params = CreateSnapshotFromCommandLine(); | 20 DisplaySnapshot_Params params; |
| 21 if (params.type != DISPLAY_CONNECTION_TYPE_NONE) | 21 if (CreateSnapshotFromCommandLine(¶ms)) { |
| 22 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type); |
| 22 displays_.push_back(new DisplaySnapshotProxy(params)); | 23 displays_.push_back(new DisplaySnapshotProxy(params)); |
| 24 } |
| 23 } | 25 } |
| 24 | 26 |
| 25 void NativeDisplayDelegateOzone::GrabServer() { | 27 void NativeDisplayDelegateOzone::GrabServer() { |
| 26 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
| 27 } | 29 } |
| 28 | 30 |
| 29 void NativeDisplayDelegateOzone::UngrabServer() { | 31 void NativeDisplayDelegateOzone::UngrabServer() { |
| 30 NOTIMPLEMENTED(); | 32 NOTIMPLEMENTED(); |
| 31 } | 33 } |
| 32 | 34 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { | 105 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { |
| 104 NOTIMPLEMENTED(); | 106 NOTIMPLEMENTED(); |
| 105 } | 107 } |
| 106 | 108 |
| 107 void NativeDisplayDelegateOzone::RemoveObserver( | 109 void NativeDisplayDelegateOzone::RemoveObserver( |
| 108 NativeDisplayObserver* observer) { | 110 NativeDisplayObserver* observer) { |
| 109 NOTIMPLEMENTED(); | 111 NOTIMPLEMENTED(); |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace ui | 114 } // namespace ui |
| OLD | NEW |