summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/examples/api/omnibox/simple-example.zip
blob: fd15bfb34cb342f0ea4a1a2b17631d1e06539e85 (plain)
ofshex dumpascii
0000 50 4b 03 04 14 00 00 00 00 00 5c 74 69 3d e7 f0 5b 45 a8 02 00 00 a8 02 00 00 1e 00 00 00 73 69 PK........\ti=..[E............si
0020 6d 70 6c 65 2d 65 78 61 6d 70 6c 65 2f 62 61 63 6b 67 72 6f 75 6e 64 2e 68 74 6d 6c 3c 73 63 72 mple-example/background.html<scr
0040 69 70 74 3e 0a 2f 2f 20 54 68 69 73 20 65 76 65 6e 74 20 69 73 20 66 69 72 65 64 20 65 61 63 68 ipt>.//.This.event.is.fired.each
0060 20 74 69 6d 65 20 74 68 65 20 75 73 65 72 20 75 70 64 61 74 65 73 20 74 68 65 20 74 65 78 74 20 .time.the.user.updates.the.text.
0080 69 6e 20 74 68 65 20 6f 6d 6e 69 62 6f 78 2c 0a 2f 2f 20 61 73 20 6c 6f 6e 67 20 61 73 20 74 68 in.the.omnibox,.//.as.long.as.th
00a0 65 20 65 78 74 65 6e 73 69 6f 6e 27 73 20 6b 65 79 77 6f 72 64 20 6d 6f 64 65 20 69 73 20 73 74 e.extension's.keyword.mode.is.st
00c0 69 6c 6c 20 61 63 74 69 76 65 2e 0a 63 68 72 6f 6d 65 2e 65 78 70 65 72 69 6d 65 6e 74 61 6c 2e ill.active..chrome.experimental.
00e0 6f 6d 6e 69 62 6f 78 2e 6f 6e 49 6e 70 75 74 43 68 61 6e 67 65 64 2e 61 64 64 4c 69 73 74 65 6e omnibox.onInputChanged.addListen
0100 65 72 28 0a 20 20 66 75 6e 63 74 69 6f 6e 28 74 65 78 74 2c 20 73 75 67 67 65 73 74 29 20 7b 0a er(...function(text,.suggest).{.
0120 20 20 20 20 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 27 69 6e 70 75 74 43 68 61 6e 67 65 64 3a 20 27 ....console.log('inputChanged:.'
0140 20 2b 20 74 65 78 74 29 3b 0a 20 20 20 20 73 75 67 67 65 73 74 28 5b 0a 20 20 20 20 20 20 7b 63 .+.text);.....suggest([.......{c
0160 6f 6e 74 65 6e 74 3a 20 74 65 78 74 20 2b 20 22 20 6f 6e 65 22 2c 20 64 65 73 63 72 69 70 74 69 ontent:.text.+.".one",.descripti
0180 6f 6e 3a 20 22 74 68 65 20 66 69 72 73 74 20 6f 6e 65 22 7d 2c 0a 20 20 20 20 20 20 7b 63 6f 6e on:."the.first.one"},.......{con
01a0 74 65 6e 74 3a 20 74 65 78 74 20 2b 20 22 20 6e 75 6d 62 65 72 20 74 77 6f 22 2c 20 64 65 73 63 tent:.text.+.".number.two",.desc
01c0 72 69 70 74 69 6f 6e 3a 20 22 74 68 65 20 73 65 63 6f 6e 64 20 65 6e 74 72 79 22 7d 0a 20 20 20 ription:."the.second.entry"}....
01e0 20 5d 29 3b 0a 20 20 7d 29 3b 0a 0a 2f 2f 20 54 68 69 73 20 65 76 65 6e 74 20 69 73 20 66 69 72 .]);...});..//.This.event.is.fir
0200 65 64 20 77 69 74 68 20 74 68 65 20 75 73 65 72 20 61 63 63 65 70 74 73 20 74 68 65 20 69 6e 70 ed.with.the.user.accepts.the.inp
0220 75 74 20 69 6e 20 74 68 65 20 6f 6d 6e 69 62 6f 78 2e 0a 63 68 72 6f 6d 65 2e 65 78 70 65 72 69 ut.in.the.omnibox..chrome.experi
0240 6d 65 6e 74 61 6c 2e 6f 6d 6e 69 62 6f 78 2e 6f 6e 49 6e 70 75 74 45 6e 74 65 72 65 64 2e 61 64 mental.omnibox.onInputEntered.ad
0260 64 4c 69 73 74 65 6e 65 72 28 0a 20 20 66 75 6e 63 74 69 6f 6e 28 74 65 78 74 29 20 7b 0a 20 20 dListener(...function(text).{...
0280 20 20 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 27 69 6e 70 75 74 45 6e 74 65 72 65 64 3a 20 27 20 2b ..console.log('inputEntered:.'.+
02a0 20 74 65 78 74 29 3b 0a 20 20 20 20 61 6c 65 72 74 28 27 59 6f 75 20 6a 75 73 74 20 74 79 70 65 .text);.....alert('You.just.type
02c0 64 20 22 27 20 2b 20 74 65 78 74 20 2b 20 27 22 27 29 3b 0a 20 20 7d 29 3b 0a 3c 2f 73 63 72 69 d."'.+.text.+.'"');...});.</scri
02e0 70 74 3e 0a 50 4b 03 04 14 00 00 00 00 00 5c 74 69 3d 78 db d3 38 ee 00 00 00 ee 00 00 00 1c 00 pt>.PK........\ti=x..8..........
0300 00 00 73 69 6d 70 6c 65 2d 65 78 61 6d 70 6c 65 2f 6d 61 6e 69 66 65 73 74 2e 6a 73 6f 6e 7b 0a ..simple-example/manifest.json{.
0320 20 20 22 6e 61 6d 65 22 3a 20 22 4f 6d 6e 69 62 6f 78 20 45 78 61 6d 70 6c 65 22 2c 0a 20 20 22 .."name":."Omnibox.Example",..."
0340 64 65 73 63 72 69 70 74 69 6f 6e 22 20 3a 20 22 54 6f 20 75 73 65 2c 20 74 79 70 65 20 27 6f 6d description".:."To.use,.type.'om
0360 6e 69 78 27 20 70 6c 75 73 20 61 20 73 65 61 72 63 68 20 74 65 72 6d 20 69 6e 74 6f 20 74 68 65 nix'.plus.a.search.term.into.the
0380 20 4f 6d 6e 69 62 6f 78 2e 22 2c 0a 20 20 22 76 65 72 73 69 6f 6e 22 3a 20 22 31 2e 30 22 2c 0a .Omnibox.",..."version":."1.0",.
03a0 20 20 22 70 65 72 6d 69 73 73 69 6f 6e 73 22 3a 20 5b 20 22 65 78 70 65 72 69 6d 65 6e 74 61 6c .."permissions":.[."experimental
03c0 22 20 5d 2c 0a 20 20 22 62 61 63 6b 67 72 6f 75 6e 64 5f 70 61 67 65 22 3a 20 22 62 61 63 6b 67 ".],..."background_page":."backg
03e0 72 6f 75 6e 64 2e 68 74 6d 6c 22 2c 0a 20 20 22 6f 6d 6e 69 62 6f 78 5f 6b 65 79 77 6f 72 64 22 round.html",..."omnibox_keyword"
0400 3a 20 22 6f 6d 6e 69 78 22 0a 7d 0a 50 4b 01 02 14 03 14 00 00 00 00 00 5c 74 69 3d e7 f0 5b 45 :."omnix".}.PK..........\ti=..[E
0420 a8 02 00 00 a8 02 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 a0 81 00 00 00 00 73 69 6d 70 6c 65 ..........................simple
0440 2d 65 78 61 6d 70 6c 65 2f 62 61 63 6b 67 72 6f 75 6e 64 2e 68 74 6d 6c 50 4b 01 02 14 03 14 00 -example/background.htmlPK......
0460 00 00 00 00 5c 74 69 3d 78 db d3 38 ee 00 00 00 ee 00 00 00 1c 00 00 00 28 00 00 00 00 00 00 00 ....\ti=x..8............(.......
0480 a0 81 e4 02 00 00 73 69 6d 70 6c 65 2d 65 78 61 6d 70 6c 65 2f 6d 61 6e 69 66 65 73 74 2e 6a 73 ......simple-example/manifest.js
04a0 6f 6e 33 64 37 65 31 66 34 32 65 64 63 32 39 38 61 64 30 64 39 34 39 33 65 37 39 33 35 39 38 30 on3d7e1f42edc298ad0d9493e7935980
04c0 32 35 31 34 33 36 66 35 62 31 50 4b 05 06 00 00 00 00 02 00 02 00 be 00 00 00 0c 04 00 00 00 00 251436f5b1PK....................