summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/resources/webui
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate handling of long-press keys on the virtual keyboard. ↵kevers@chromium.org2013-07-251-1/+1
| | | | | | | | | | Dynamically constructs the popup list of alternate key candidates. Decouples keyboard layout from suggested candidates on long-press so that a common set of accents to be used across multiple keyboard layouts, or alternative accents could be used for a single keyboard depending on language. R=bryeung@chromium.org, bshe@chromium.org Review URL: https://codereview.chromium.org/19860005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213600 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce kb-shift-keybshe@chromium.org2013-07-201-8/+12
| | | | | | | | | | | | This CL instroduce kb-shift-key. It is extended from kb-key with the ability to listen to double click event. BUG=252751 Review URL: https://chromiumcodereview.appspot.com/19771007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212723 0039d316-1c4b-4281-b951-d872f2087c98
* Give the WebUI keyboard the v1 style.stevet@chromium.org2013-07-111-7/+46
| | | | | | | | This also adds the key styling to webui's main.css, which I forgot to do in a previous refactoring patch. Review URL: https://chromiumcodereview.appspot.com/18484007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211175 0039d316-1c4b-4281-b951-d872f2087c98
* Add layouts directory and move all keysets to itbshe@chromium.org2013-07-051-140/+0
| | | | | | | | BUG=None Review URL: https://chromiumcodereview.appspot.com/18328024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210321 0039d316-1c4b-4281-b951-d872f2087c98
* Keyboard: rename mic to microphone.bryeung@chromium.org2013-07-041-4/+4
| | | | | | | | | | | | It was suggested in a recent code review that the abbreviation "mic" could be confusing for some people. This changes all instances to "microphone". BUG=none Review URL: https://chromiumcodereview.appspot.com/18089008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210243 0039d316-1c4b-4281-b951-d872f2087c98
* Using <content select=""> to inject long press key UIbshe@chromium.org2013-06-281-20/+20
| | | | | | | | | | | | We previously injected long press key UI through template and depended on some logic checks. This CL use <content select=""> to do it more elegant. BUG= Review URL: https://chromiumcodereview.appspot.com/17847004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209180 0039d316-1c4b-4281-b951-d872f2087c98
* Support accent keysbshe@chromium.org2013-06-251-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | Mocks are here: https://folio.googleplex.com/cros-vkey/#/07-vkey-longpress-E.png accents keys should be summoned by long press on a key. If there is not accent keys associated with the long pressed key, nothing should happen. To add accent keys, here are the steps(temporary, may change in the future): 1. create a template element in the corresponding keyset element (make sure the template is the first child of the keyset) 2. create a structure like this (take lower case letter e for example): <kb-accent-set id="e" offset="2"> <kb-accent-key>&#xUUUU</kb-accent-key> <kb-accent-key>&#xUUUU</kb-accent-key> <kb-accent-key class="active">e</kb-accent-key> <kb-accent-key>&#xUUUU</kb-accent-key> </kb-accent-set> where id is the same as the letter we long pressed; offset represent how many keys should display on the left side of the pressed key(in our case, two keys should display on the left side of e after long pressed). class active should apply to the key that overlay the long pressed key (in our case, the overlay key should be the same as the original key). 3. add accents attribute the the e kb-key element, e.g. <kb-key accents="e">e</kb-key> BUG=247734 Review URL: https://chromiumcodereview.appspot.com/16781005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208558 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust the WebUI keyboard css and layout to work better in narrow spaces.stevet@chromium.org2013-06-223-42/+65
| | | | | | | | | | NOTE that this must be patched on top of https://codereview.chromium.org/15176004/ TODOs: Add a list of adjustments here before review. Review URL: https://chromiumcodereview.appspot.com/16336002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207982 0039d316-1c4b-4281-b951-d872f2087c98
* Insert text directly from the virtual keyboard.bryeung@chromium.org2013-06-212-23/+20
| | | | | | | | | | | | | | | | This allows the insertion of text that does not directly correspond to key codes. The new API introduced is a temporary solution to allow us to continue prototyping the virtual keyboard and understanding how the implementation will interact with IMEs until proper IME integration can be achieved. BUG=237533 Review URL: https://chromiumcodereview.appspot.com/16972006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207752 0039d316-1c4b-4281-b951-d872f2087c98
* Web Component Virtual Keyboardbshe@chromium.org2013-06-204-201/+189
| | | | | | | | | | | Convert existing keyboard to web component keyboard. Also fix touch down state of keys. BUG=242539, 240346 R=bryeung@chromium.org, miket@chromium.org, stevet@chromium.org Review URL: https://codereview.chromium.org/15176004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207448 0039d316-1c4b-4281-b951-d872f2087c98
* Add mic key to webui keyboardbshe@chromium.org2013-05-032-0/+5
| | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/14694012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198040 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify naming in ui/keyboard/resources.bryeung@chromium.org2013-05-011-0/+0
| | | | | | | | | | | Rename send_key_event.js to api_adapter.js, in preparation for adding other APIs to this file. BUG=none Review URL: https://chromiumcodereview.appspot.com/14668002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197559 0039d316-1c4b-4281-b951-d872f2087c98
* Allow more customization of the WebUI keyboard.bryeung@chromium.org2013-04-263-0/+264
This separates the layout, CSS (and necessarily the send_key_event.js file) for the WebUI and Extension versions of the keyboard. The Extension uses the files directly in resources/*, whereas the KeyboardUIController remaps certain resources to the resources/webui/* versions. BUG=none Review URL: https://chromiumcodereview.appspot.com/14031030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196780 0039d316-1c4b-4281-b951-d872f2087c98