Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: ui/ozone/platform/dri/native_display_delegate_proxy.cc

Issue 698293002: ozone: Add PRESUBMIT.py to check patch formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/native_display_delegate_proxy.h ('k') | ui/ozone/platform/dri/ozone_platform_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698