1 <html><body><h1>Instant
</h1><script>
3 var onvisibilitycalls
= 0;
4 document
.addEventListener("visibilitychange", function() {
10 var oncancelcalls
= 0;
11 var onresizecalls
= 0;
17 var suggestion
= [ { value
: "query suggestion" } ];
20 chrome
.embeddedSearch
.searchBox
.onchange = function() {
22 value
= chrome
.embeddedSearch
.searchBox
.value
;
23 verbatim
= chrome
.embeddedSearch
.searchBox
.verbatim
;
24 chrome
.embeddedSearch
.searchBox
.setSuggestions({
25 suggestions
: suggestion
,
26 complete_behavior
: behavior
30 chrome
.embeddedSearch
.searchBox
.onsubmit = function() {
32 value
= chrome
.embeddedSearch
.searchBox
.value
;
33 verbatim
= chrome
.embeddedSearch
.searchBox
.verbatim
;
36 chrome
.embeddedSearch
.searchBox
.oncancel = function() {
38 value
= chrome
.embeddedSearch
.searchBox
.value
;
39 verbatim
= chrome
.embeddedSearch
.searchBox
.verbatim
;
42 chrome
.embeddedSearch
.searchBox
.onresize = function() {
44 height
= chrome
.embeddedSearch
.searchBox
.height
;
47 if (chrome
.embeddedSearch
.searchBox
.value
!= "")
48 chrome
.embeddedSearch
.searchBox
.onchange();
50 </script></body></html>