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

Unified Diff: ppapi/examples/video_capture/video_capture.html

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/examples/video_capture/video_capture.html
diff --git a/ppapi/examples/video_capture/video_capture.html b/ppapi/examples/video_capture/video_capture.html
index 4aa888e4e509dabdc964bb4f4f5b676ac0301778..5b62c76cc7e23ac79b371636ad212a24dfb95536 100644
--- a/ppapi/examples/video_capture/video_capture.html
+++ b/ppapi/examples/video_capture/video_capture.html
@@ -38,10 +38,8 @@
UseDevice(device_array[index], index);
}
- function UseDefaultDevice(use_0_1_interface) {
- var display_text = use_0_1_interface ? 'Default(v0.1)' : 'Default';
- var command = use_0_1_interface ? 'UseDefault(v0.1)' : 'UseDefault';
- UseDevice(display_text, command);
+ function UseDefaultDevice() {
+ UseDevice('Default', 'UseDefault');
}
function UseDevice(display_text, command) {
@@ -84,9 +82,7 @@
<div id="available_devices">
Available device(s), choose one to open:
<ul id="device_list">
- <li><a href="javascript:UseDefaultDevice(true);">
- Default - use interface version 0.1</a></li>
- <li><a href="javascript:UseDefaultDevice(false);">Default</a></li>
+ <li><a href="javascript:UseDefaultDevice();">Default</a></li>
</ul>
</div>
<div id="control_panel"></div>
« no previous file with comments | « ppapi/examples/video_capture/video_capture.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698