| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/imagecapture/ImageCapture.h" | 5 #include "modules/imagecapture/ImageCapture.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "core/dom/DOMException.h" | 9 #include "core/dom/DOMException.h" |
| 10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 settings->red_eye_reduction = photoSettings.redEyeReduction(); | 173 settings->red_eye_reduction = photoSettings.redEyeReduction(); |
| 174 settings->has_fill_light_mode = photoSettings.hasFillLightMode(); | 174 settings->has_fill_light_mode = photoSettings.hasFillLightMode(); |
| 175 if (settings->has_fill_light_mode) | 175 if (settings->has_fill_light_mode) |
| 176 settings->fill_light_mode = | 176 settings->fill_light_mode = |
| 177 parseFillLightMode(photoSettings.fillLightMode()); | 177 parseFillLightMode(photoSettings.fillLightMode()); |
| 178 if (photoSettings.hasPointsOfInterest()) { | 178 if (photoSettings.hasPointsOfInterest()) { |
| 179 for (const auto& point : photoSettings.pointsOfInterest()) { | 179 for (const auto& point : photoSettings.pointsOfInterest()) { |
| 180 auto mojoPoint = media::mojom::blink::Point2D::New(); | 180 auto mojoPoint = media::mojom::blink::Point2D::New(); |
| 181 mojoPoint->x = point.x(); | 181 mojoPoint->x = point.x(); |
| 182 mojoPoint->y = point.y(); | 182 mojoPoint->y = point.y(); |
| 183 settings->points_of_interest.append(std::move(mojoPoint)); | 183 settings->points_of_interest.push_back(std::move(mojoPoint)); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 settings->has_color_temperature = photoSettings.hasColorTemperature(); | 186 settings->has_color_temperature = photoSettings.hasColorTemperature(); |
| 187 if (settings->has_color_temperature) | 187 if (settings->has_color_temperature) |
| 188 settings->color_temperature = photoSettings.colorTemperature(); | 188 settings->color_temperature = photoSettings.colorTemperature(); |
| 189 settings->has_brightness = photoSettings.hasBrightness(); | 189 settings->has_brightness = photoSettings.hasBrightness(); |
| 190 if (settings->has_brightness) | 190 if (settings->has_brightness) |
| 191 settings->brightness = photoSettings.brightness(); | 191 settings->brightness = photoSettings.brightness(); |
| 192 settings->has_contrast = photoSettings.hasContrast(); | 192 settings->has_contrast = photoSettings.hasContrast(); |
| 193 if (settings->has_contrast) | 193 if (settings->has_contrast) |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 } | 381 } |
| 382 | 382 |
| 383 DEFINE_TRACE(ImageCapture) { | 383 DEFINE_TRACE(ImageCapture) { |
| 384 visitor->trace(m_streamTrack); | 384 visitor->trace(m_streamTrack); |
| 385 visitor->trace(m_serviceRequests); | 385 visitor->trace(m_serviceRequests); |
| 386 EventTargetWithInlineData::trace(visitor); | 386 EventTargetWithInlineData::trace(visitor); |
| 387 ContextLifecycleObserver::trace(visitor); | 387 ContextLifecycleObserver::trace(visitor); |
| 388 } | 388 } |
| 389 | 389 |
| 390 } // namespace blink | 390 } // namespace blink |
| OLD | NEW |