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/native_display_delegate_proxy.h" | 5 #include "ui/ozone/platform/dri/native_display_delegate_proxy.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/display/types/display_snapshot.h" | 8 #include "ui/display/types/display_snapshot.h" |
9 #include "ui/display/types/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" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 return handled; | 149 return handled; |
150 } | 150 } |
151 | 151 |
152 void NativeDisplayDelegateProxy::OnUpdateNativeDisplays( | 152 void NativeDisplayDelegateProxy::OnUpdateNativeDisplays( |
153 const std::vector<DisplaySnapshot_Params>& displays) { | 153 const std::vector<DisplaySnapshot_Params>& displays) { |
154 displays_.clear(); | 154 displays_.clear(); |
155 for (size_t i = 0; i < displays.size(); ++i) | 155 for (size_t i = 0; i < displays.size(); ++i) |
156 displays_.push_back(new DisplaySnapshotProxy(displays[i])); | 156 displays_.push_back(new DisplaySnapshotProxy(displays[i])); |
157 | 157 |
158 FOR_EACH_OBSERVER( | 158 FOR_EACH_OBSERVER(NativeDisplayObserver, observers_, |
159 NativeDisplayObserver, observers_, OnConfigurationChanged()); | 159 OnConfigurationChanged()); |
160 } | 160 } |
161 | 161 |
162 } // namespace ui | 162 } // namespace ui |
OLD | NEW |