Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / google_input_tools / src / chrome / os / inputview / layouts / compactkbd_nordic_layout.js
1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved.
2 // limitations under the License.
3 // See the License for the specific language governing permissions and
4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5 // distributed under the License is distributed on an "AS-IS" BASIS,
6 // Unless required by applicable law or agreed to in writing, software
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // You may obtain a copy of the License at
11 // you may not use this file except in compliance with the License.
12 // Licensed under the Apache License, Version 2.0 (the "License");
13 //
14 goog.require('i18n.input.chrome.inputview.layouts.CompactSpaceRow');
15 goog.require('i18n.input.chrome.inputview.layouts.RowsOfCompactNordic');
16 goog.require('i18n.input.chrome.inputview.layouts.util');
17
18
19 (function() {
20   i18n.input.chrome.inputview.layouts.util.setPrefix('compactkbd-k-');
21
22   var topThreeRows =
23       i18n.input.chrome.inputview.layouts.RowsOfCompactNordic.create();
24   var spaceRow =
25       i18n.input.chrome.inputview.layouts.CompactSpaceRow.create(true);
26
27   // Keyboard view.
28   var keyboardView = i18n.input.chrome.inputview.layouts.util.createLayoutView({
29     'id': 'keyboardView',
30     'children': [topThreeRows, spaceRow],
31     'widthPercent': 100,
32     'heightPercent': 100
33   });
34
35   var keyboardContainer = i18n.input.chrome.inputview.layouts.util.
36       createLinearLayout({
37         'id': 'keyboardContainer',
38         'children': [keyboardView]
39       });
40
41   var data = {
42     'layoutID': 'compactkbd-nordic',
43     'widthInWeight': 15,
44     'children': [keyboardContainer]
45   };
46
47   google.ime.chrome.inputview.onLayoutLoaded(data);
48
49 }) ();