blob: 7866b6ebafb72ccf6b8668d650d65965d667d552 [file] [log] [blame]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Omnibox Debug Page</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="omnibox.css">
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/mojo_bindings_lite.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome/browser/ui/webui/omnibox/omnibox.mojom-lite.js"></script>
<script src="omnibox_element.js"></script>
<script src="omnibox_inputs.js"></script>
<script src="omnibox_output.js"></script>
<script src="omnibox.js"></script>
</head>
<body>
<template id="omnibox-inputs-template">
<link rel="stylesheet" href="omnibox.css">
<p>
<input id="input-text" type="text" size="60" placeholder="Enter omnibox input text [Alt+L]" accesskey="l" autocomplete="off" autofocus>
</p>
<p>Input parameters:</p>
<p>
<label>
<input id="reset-autocomplete-controller" type="checkbox" accesskey="r">
<span class="accesskey">R</span>eset autocomplete controller
</label>
</p>
<p>
<label>
<input id="lock-cursor-position" type="checkbox" accesskey="c">
Lock <span class="accesskey">c</span>ursor position to end of input
</label>
</p>
<p>
<label>
<input id="prevent-inline-autocomplete" type="checkbox" accesskey="a">
Prevent inline <span class="accesskey">a</span>utocomplete
</label>
</p>
<p>
<label>
<input id="prefer-keyword" type="checkbox" accesskey="k">
In <span class="accesskey">k</span>eyword mode
</label>
</p>
<p>
C<span class="accesskey">u</span>rrent page context:
<select id="page-classification" accesskey="u">
<option value="0">Invalid spec</option>
<option value="2">about:blank</option>
<option value="3">user's home page</option>
<option value="4" selected>arbitrary URL</option>
<option value="9">search result page not doing search term replacement</option>
<option value="7">new tab page omnibox</option>
<option value="8">new tab page fakebox</option>
<option value="1">(OBSOLETE) new tab page</option>
<option value="6">(OBSOLETE) search result page doing search term replacement</option>
</select>
</p>
<p>Display parameters:</p>
<p>
<label>
<input id="show-incomplete-results" type="checkbox" accesskey="i">
Show <span class="accesskey">i</span>ncomplete results
</label>
</p>
<p>
<label>
<input id="show-details" type="checkbox" accesskey="t">
Show all de<span class="accesskey">t</span>ails
</label>
</p>
<p>
<label>
<input id="show-all-providers" type="checkbox" accesskey="p" checked>
Show results per <span class="accesskey">p</span>rovider, not just merged results
</label>
</p>
<div class="section">
<button id="copy-text" title="Copy visible table in text format. This is affected by the visibility of ouput; i.e. toggling 'Show all details' affects what will be copied.">Copy as text</button>
<button id="copy-json" title="Copy responses in JSON format. This is not affected by the visibility of output and will copy responses in their entirety.">Copy as JSON</button>
</div>
<div class="section">
<input id="filter-text" type="text" size="60" placeholder="Enter filter text (e.g. 'google', 'is:star', 'not:del') [Alt+G]" accesskey="g" autocomplete="off" title="Checks each cell individually; i.e. filter text should not span multiple columns. Supports fuzzyness; each character of filter text must be present in the cell, either adjacent to the previous matched character, or at the start of a new word. Words are defined as being delimited by either capital letters, groups of digits, or non alpha characters. E.g. 'abc' matches 'abc', 'a big cat', 'a-bigCat', 'a very big cat', and 'an amBer cat'; but does not match 'abigcat' or 'an amber cat'. 'green rainbow' is matched by 'gre rain', but not by 'gre bow'. One exception is the first character, which may be matched mid-word. E.g. 'een rain' can also match 'green rainbow'. Boolean properties can be searched for via the property name prefixed by 'is:' or 'not:'. Boolean property names are: 'Can Be Default', 'Starred', 'Has Tab Match', 'Del', 'Prev', and 'Done'.">
</div>
</template>
<template id="omnibox-output-template">
<link rel="stylesheet" href="omnibox.css">
<div id="contents"></div>
</template>
<template id="details-and-table-template">
<link rel="stylesheet" href="omnibox.css">
<div id="details"></div>
<table id="table"></table>
</template>
<template id="details-template">
<p>cursor position = <span class="cursor-position"></span></p>
<p>elapsed time = <span class="time"></span>ms</p>
<p>all providers done = <span class="done"></span></p>
<p>host = <span class="host"></span>, has isTypedHost = <span class="is-typed-host"></span></p>
</template>
<div class="section">
<omnibox-inputs id="omnibox-inputs"></omnibox-inputs>
</div>
<div class="section">
<omnibox-output id="omnibox-output"></omnibox-output>
</div>
</body>
</html>