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

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

Issue 2387303002: Image Capture Linux/CrOs, implement brightness, contrast, saturation and sharpness (Closed)
Patch Set: Explicitly initialize to empty the new fields in the Android implementation and rebase 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
« no previous file with comments | « no previous file | media/capture/video/android/video_capture_device_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
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 empty_capabilities->color_temperature = media::mojom::Range::New();
42 empty_capabilities->brightness = media::mojom::Range::New();
43 empty_capabilities->contrast = media::mojom::Range::New();
44 empty_capabilities->saturation = media::mojom::Range::New();
45 empty_capabilities->sharpness = media::mojom::Range::New();
42 cb.Run(std::move(empty_capabilities)); 46 cb.Run(std::move(empty_capabilities));
43 } 47 }
44 48
45 void RunSetOptionsCallbackOnUIThread( 49 void RunSetOptionsCallbackOnUIThread(
46 const ImageCaptureImpl::SetOptionsCallback& callback, 50 const ImageCaptureImpl::SetOptionsCallback& callback,
47 bool success) { 51 bool success) {
48 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 52 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
49 base::Bind(callback, success)); 53 base::Bind(callback, success));
50 } 54 }
51 55
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback))); 173 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback)));
170 174
171 BrowserThread::PostTask( 175 BrowserThread::PostTask(
172 BrowserThread::IO, FROM_HERE, 176 BrowserThread::IO, FROM_HERE,
173 base::Bind(&TakePhotoOnIOThread, source_id, 177 base::Bind(&TakePhotoOnIOThread, source_id,
174 BrowserMainLoop::GetInstance()->media_stream_manager(), 178 BrowserMainLoop::GetInstance()->media_stream_manager(),
175 base::Passed(&scoped_callback))); 179 base::Passed(&scoped_callback)));
176 } 180 }
177 181
178 } // namespace content 182 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | media/capture/video/android/video_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698