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

Side by Side Diff: third_party/WebKit/LayoutTests/imagecapture/setoptions.html

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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/mock-imagecapture.js"></script> 5 <script src="resources/mock-imagecapture.js"></script>
6 <body> 6 <body>
7 <canvas id='canvas' width=10 height=10/> 7 <canvas id='canvas' width=10 height=10/>
8 </body> 8 </body>
9 <script> 9 <script>
10 10
(...skipping 16 matching lines...) Expand all
27 focusMode : "single-shot", 27 focusMode : "single-shot",
28 pointsOfInterest : [{x : 0.1, y : 0.2}, 28 pointsOfInterest : [{x : 0.1, y : 0.2},
29 {x : 0.3, y : 0.4}], 29 {x : 0.3, y : 0.4}],
30 exposureMode : "continuous", 30 exposureMode : "continuous",
31 exposureCompensation : 133, 31 exposureCompensation : 133,
32 whiteBalanceMode : "manual", 32 whiteBalanceMode : "manual",
33 iso : 120, 33 iso : 120,
34 redEyeReduction : true, 34 redEyeReduction : true,
35 fillLightMode : "flash", 35 fillLightMode : "flash",
36 colorTemperature : 6000, 36 colorTemperature : 6000,
37 brightness : 3,
38 contrast : 4,
39 saturation : 5,
40 sharpness : 6
37 }; 41 };
38 mockImageCaptureReady 42 mockImageCaptureReady
39 .then(mock => { 43 .then(mock => {
40 theMock = mock; 44 theMock = mock;
41 return new ImageCapture(stream.getVideoTracks()[0]); 45 return new ImageCapture(stream.getVideoTracks()[0]);
42 }) 46 })
43 .catch(error => { 47 .catch(error => {
44 assert_unreached("Error creating MockImageCapture: " + error); 48 assert_unreached("Error creating MockImageCapture: " + error);
45 }) 49 })
46 .then(capturer => { 50 .then(capturer => {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 'colorTemperature value'); 107 'colorTemperature value');
104 108
105 t.done(); 109 t.done();
106 }) 110 })
107 .catch(error => { 111 .catch(error => {
108 assert_unreached("Error during setOptions(): " + error); 112 assert_unreached("Error during setOptions(): " + error);
109 }); 113 });
110 }, 'exercises the ImageCapture API setOptions()'); 114 }, 'exercises the ImageCapture API setOptions()');
111 115
112 </script> 116 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698