]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/windows/tests/cefclient/resources/binding.html
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / windows / tests / cefclient / resources / binding.html
diff --git a/dependencies64/cef/windows/tests/cefclient/resources/binding.html b/dependencies64/cef/windows/tests/cefclient/resources/binding.html
new file mode 100644 (file)
index 0000000..9ee0775
--- /dev/null
@@ -0,0 +1,28 @@
+<html>
+<head>
+<title>Binding Test</title>
+<script language="JavaScript">
+
+// Send a query to the browser process.
+function sendMessage() {
+  // Results in a call to the OnQuery method in binding_test.cpp
+  window.cefQuery({
+    request: 'BindingTest:' + document.getElementById("message").value,
+    onSuccess: function(response) {
+      document.getElementById('result').value = 'Response: '+response;
+    },
+    onFailure: function(error_code, error_message) {}
+  });
+}
+</script>
+
+</head>
+<body bgcolor="white">
+<form>
+Message: <input type="text" id="message" value="My Message">
+<br/><input type="button" onclick="sendMessage();" value="Send Message">
+<br/>You should see the reverse of your message below:
+<br/><textarea rows="10" cols="40" id="result"></textarea>
+</form>
+</body>
+</html>