| 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/display_message_handler.h" | 5 #include "ui/ozone/platform/dri/chromeos/display_message_handler.h" |
| 6 | 6 |
| 7 #include "ui/display/types/chromeos/display_mode.h" | 7 #include "ui/display/types/display_mode.h" |
| 8 #include "ui/display/types/chromeos/display_snapshot.h" | 8 #include "ui/display/types/display_snapshot.h" |
| 9 #include "ui/ozone/common/chromeos/display_util.h" | 9 #include "ui/ozone/common/chromeos/display_util.h" |
| 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
| 11 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" | 11 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" |
| 12 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h" | 12 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 class FindDisplayById { | 18 class FindDisplayById { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 void DisplayMessageHandler::OnDisableNativeDisplay(int64_t id) { | 131 void DisplayMessageHandler::OnDisableNativeDisplay(int64_t id) { |
| 132 DisplaySnapshot* display = ndd_->FindDisplaySnapshot(id); | 132 DisplaySnapshot* display = ndd_->FindDisplaySnapshot(id); |
| 133 if (display) | 133 if (display) |
| 134 ndd_->Configure(*display, NULL, gfx::Point()); | 134 ndd_->Configure(*display, NULL, gfx::Point()); |
| 135 else | 135 else |
| 136 LOG(ERROR) << "There is no display with ID " << id; | 136 LOG(ERROR) << "There is no display with ID " << id; |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace ui | 139 } // namespace ui |
| OLD | NEW |