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

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

Issue 11366038: Rewrite PPB_AudioInput_Dev to use the new-style host/resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/audio_input/audio_input.html
diff --git a/ppapi/examples/audio_input/audio_input.html b/ppapi/examples/audio_input/audio_input.html
index 34255f2be33f2784d2bc125c83635e926ff29ae4..8fa043cc54031f72c9cd43d7a56d473f9060cfbb 100644
--- a/ppapi/examples/audio_input/audio_input.html
+++ b/ppapi/examples/audio_input/audio_input.html
@@ -41,10 +41,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) {
@@ -89,9 +87,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);">
+ <li><a href="javascript:UseDefaultDevice();">
Default - use interface version 0.2 and NULL device ref</a></li>
</ul>
</div>
« no previous file with comments | « ppapi/examples/audio_input/audio_input.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