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

Side by Side Diff: content/browser/media/capture/image_capture_impl.cc

Issue 2375543004: ImageCapture: wire |colorTemperature| set/get for Linux/Cros (Closed)
Patch Set: Created 4 years, 2 months 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 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 "content/browser/media/capture/image_capture_impl.h" 5 #include "content/browser/media/capture/image_capture_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "content/browser/browser_main_loop.h" 10 #include "content/browser/browser_main_loop.h"
(...skipping 20 matching lines...) Expand all
31 void RunFailedGetCapabilitiesCallback( 31 void RunFailedGetCapabilitiesCallback(
32 const ImageCaptureImpl::GetCapabilitiesCallback& cb) { 32 const ImageCaptureImpl::GetCapabilitiesCallback& cb) {
33 DCHECK_CURRENTLY_ON(BrowserThread::UI); 33 DCHECK_CURRENTLY_ON(BrowserThread::UI);
34 media::mojom::PhotoCapabilitiesPtr empty_capabilities = 34 media::mojom::PhotoCapabilitiesPtr empty_capabilities =
35 media::mojom::PhotoCapabilities::New(); 35 media::mojom::PhotoCapabilities::New();
36 empty_capabilities->iso = media::mojom::Range::New(); 36 empty_capabilities->iso = media::mojom::Range::New();
37 empty_capabilities->width = media::mojom::Range::New(); 37 empty_capabilities->width = media::mojom::Range::New();
38 empty_capabilities->height = media::mojom::Range::New(); 38 empty_capabilities->height = media::mojom::Range::New();
39 empty_capabilities->zoom = media::mojom::Range::New(); 39 empty_capabilities->zoom = media::mojom::Range::New();
40 empty_capabilities->exposure_compensation = media::mojom::Range::New(); 40 empty_capabilities->exposure_compensation = media::mojom::Range::New();
41 empty_capabilities->color_temperature = media::mojom::Range::New();
41 cb.Run(std::move(empty_capabilities)); 42 cb.Run(std::move(empty_capabilities));
42 } 43 }
43 44
44 void RunSetOptionsCallbackOnUIThread( 45 void RunSetOptionsCallbackOnUIThread(
45 const ImageCaptureImpl::SetOptionsCallback& callback, 46 const ImageCaptureImpl::SetOptionsCallback& callback,
46 bool success) { 47 bool success) {
47 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 48 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
48 base::Bind(callback, success)); 49 base::Bind(callback, success));
49 } 50 }
50 51
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback))); 169 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback)));
169 170
170 BrowserThread::PostTask( 171 BrowserThread::PostTask(
171 BrowserThread::IO, FROM_HERE, 172 BrowserThread::IO, FROM_HERE,
172 base::Bind(&TakePhotoOnIOThread, source_id, 173 base::Bind(&TakePhotoOnIOThread, source_id,
173 BrowserMainLoop::GetInstance()->media_stream_manager(), 174 BrowserMainLoop::GetInstance()->media_stream_manager(),
174 base::Passed(&scoped_callback))); 175 base::Passed(&scoped_callback)));
175 } 176 }
176 177
177 } // namespace content 178 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | media/capture/video/fake_video_capture_device.cc » ('j') | media/capture/video/linux/v4l2_capture_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698