| 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/platform/drm/host/drm_native_display_delegate.h" | 5 #include "ui/ozone/platform/drm/host/drm_native_display_delegate.h" |
| 6 | 6 |
| 7 #include "ui/display/types/display_snapshot.h" | 7 #include "ui/display/types/display_snapshot.h" |
| 8 #include "ui/display/types/native_display_observer.h" | 8 #include "ui/display/types/native_display_observer.h" |
| 9 #include "ui/ozone/platform/drm/host/drm_display_host.h" | 9 #include "ui/ozone/platform/drm/host/drm_display_host.h" |
| 10 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" | 10 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 DrmNativeDisplayDelegate::DrmNativeDisplayDelegate( | 14 DrmNativeDisplayDelegate::DrmNativeDisplayDelegate( |
| 15 DrmDisplayHostManager* display_manager) | 15 DrmDisplayHostManager* display_manager) |
| 16 : display_manager_(display_manager) { | 16 : display_manager_(display_manager) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 DrmNativeDisplayDelegate::~DrmNativeDisplayDelegate() { | 19 DrmNativeDisplayDelegate::~DrmNativeDisplayDelegate() { |
| 20 display_manager_->RemoveDelegate(this); | 20 display_manager_->RemoveDelegate(this); |
| 21 } | 21 } |
| 22 | 22 |
| 23 void DrmNativeDisplayDelegate::OnConfigurationChanged() { | 23 void DrmNativeDisplayDelegate::OnConfigurationChanged() { |
| 24 FOR_EACH_OBSERVER(NativeDisplayObserver, observers_, | 24 for (NativeDisplayObserver& observer : observers_) |
| 25 OnConfigurationChanged()); | 25 observer.OnConfigurationChanged(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void DrmNativeDisplayDelegate::Initialize() { | 28 void DrmNativeDisplayDelegate::Initialize() { |
| 29 display_manager_->AddDelegate(this); | 29 display_manager_->AddDelegate(this); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void DrmNativeDisplayDelegate::GrabServer() { | 32 void DrmNativeDisplayDelegate::GrabServer() { |
| 33 } | 33 } |
| 34 | 34 |
| 35 void DrmNativeDisplayDelegate::UngrabServer() { | 35 void DrmNativeDisplayDelegate::UngrabServer() { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 119 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
| 120 observers_.RemoveObserver(observer); | 120 observers_.RemoveObserver(observer); |
| 121 } | 121 } |
| 122 | 122 |
| 123 display::FakeDisplayController* | 123 display::FakeDisplayController* |
| 124 DrmNativeDisplayDelegate::GetFakeDisplayController() { | 124 DrmNativeDisplayDelegate::GetFakeDisplayController() { |
| 125 return nullptr; | 125 return nullptr; |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace ui | 128 } // namespace ui |
| OLD | NEW |