| 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/dri/chromeos/native_display_delegate_proxy.h" | 5 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/display/types/chromeos/display_snapshot.h" | 8 #include "ui/display/types/display_snapshot.h" |
| 9 #include "ui/display/types/chromeos/native_display_observer.h" | 9 #include "ui/display/types/native_display_observer.h" |
| 10 #include "ui/events/ozone/device/device_event.h" | 10 #include "ui/events/ozone/device/device_event.h" |
| 11 #include "ui/events/ozone/device/device_manager.h" | 11 #include "ui/events/ozone/device/device_manager.h" |
| 12 #include "ui/ozone/common/chromeos/display_snapshot_proxy.h" | 12 #include "ui/ozone/common/chromeos/display_snapshot_proxy.h" |
| 13 #include "ui/ozone/common/chromeos/display_util.h" | 13 #include "ui/ozone/common/chromeos/display_util.h" |
| 14 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" | 14 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" |
| 15 #include "ui/ozone/platform/dri/gpu_platform_support_host_gbm.h" | 15 #include "ui/ozone/platform/dri/gpu_platform_support_host_gbm.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 NativeDisplayDelegateProxy::NativeDisplayDelegateProxy( | 19 NativeDisplayDelegateProxy::NativeDisplayDelegateProxy( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const std::vector<DisplaySnapshot_Params>& displays) { | 150 const std::vector<DisplaySnapshot_Params>& displays) { |
| 151 displays_.clear(); | 151 displays_.clear(); |
| 152 for (size_t i = 0; i < displays.size(); ++i) | 152 for (size_t i = 0; i < displays.size(); ++i) |
| 153 displays_.push_back(new DisplaySnapshotProxy(displays[i])); | 153 displays_.push_back(new DisplaySnapshotProxy(displays[i])); |
| 154 | 154 |
| 155 FOR_EACH_OBSERVER( | 155 FOR_EACH_OBSERVER( |
| 156 NativeDisplayObserver, observers_, OnConfigurationChanged()); | 156 NativeDisplayObserver, observers_, OnConfigurationChanged()); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace ui | 159 } // namespace ui |
| OLD | NEW |