Switch TestFrameNavigationObserver to DidCommitProvisionalLoadForFrame.
[chromium-blink-merge.git] / third_party / google_input_tools / src / chrome / os / inputview / globalsettings.js
blob7dec111c4267955a22e40bd414f2703542691f23
1 // Copyright 2014 The Cloud Input Tools Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS-IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 /**
16 * @fileoverview Defines the global settings variables for ITA.
19 goog.provide('i18n.input.common.GlobalSettings');
21 goog.require('goog.positioning.Corner');
22 goog.require('goog.userAgent');
25 /**
26 * The application name.
28 * @type {string}
30 i18n.input.common.GlobalSettings.ApplicationName = 'jsapi';
33 /**
34 * The help url for the help button on keyboard. If empty string, the help
35 * button will not be showed.
37 * @type {string}
39 i18n.input.common.GlobalSettings.KeyboardHelpUrl = '';
42 /**
43 * Whether show min/max button on keyboard.
45 * @type {boolean}
47 i18n.input.common.GlobalSettings.KeyboardShowMinMax = false;
50 /**
51 * Whether to show status bar.
53 * @type {boolean}
55 i18n.input.common.GlobalSettings.ShowStatusBar = true;
58 /**
59 * Whether to show google logo.
61 * @type {boolean}
63 i18n.input.common.GlobalSettings.showGoogleLogo = false;
66 /**
67 * The shortcut key definition for statusbar toggle language command.
69 * @type {string}
71 i18n.input.common.GlobalSettings.StatusBarToggleLanguageShortcut = 'shift';
74 /**
75 * The shortcut key definition for statusbar toggle sbc/dbc command.
77 * @type {string}
79 i18n.input.common.GlobalSettings.StatusBarToggleSbcShortcut = 'shift+space';
82 /**
83 * The shortcut key definition for statusbar punctuation command.
85 * @type {string}
87 i18n.input.common.GlobalSettings.StatusBarPunctuationShortcut = 'ctrl+.';
90 /**
91 * Keyboard default location.
93 * @type {!goog.positioning.Corner}
95 i18n.input.common.GlobalSettings.KeyboardDefaultLocation =
96 goog.positioning.Corner.BOTTOM_END;
99 /**
100 * Handwriting panel default location.
102 * @type {!goog.positioning.Corner}
104 i18n.input.common.GlobalSettings.HandwritingDefaultLocation =
105 goog.positioning.Corner.BOTTOM_END;
109 * Whether is offline mode. If true, IME will be switched to offline and all
110 * tracking (server ping, ga, csi, etc.) are disabled.
111 * TODO(shuchen): Later we will use this flag to switch to ITA offline decoder.
113 * @type {boolean}
115 i18n.input.common.GlobalSettings.isOfflineMode = false;
119 * Whether to sends the fake events when input box value is changed.
121 * @type {boolean}
123 i18n.input.common.GlobalSettings.canSendFakeEvents = true;
127 * No need to register handler in capture phase for IE8.
129 * @type {boolean}
131 i18n.input.common.GlobalSettings.canListenInCaptureForIE8 =
132 !goog.userAgent.IE || goog.userAgent.isVersionOrHigher(9);
136 * The chrome extension settings.
138 * @enum {string}
140 i18n.input.common.GlobalSettings.chromeExtension = {
141 ACT_FLAG: 'IS_INPUT_ACTIVE',
142 ACTIVE_UI_IFRAME_ID: 'GOOGLE_INPUT_ACTIVE_UI',
143 APP_FLAG: 'GOOGLE_INPUT_NON_CHEXT_FLAG',
144 CHEXT_FLAG: 'GOOGLE_INPUT_CHEXT_FLAG',
145 INPUTTOOL: 'input',
146 INPUTTOOL_STAT: 'input_stat',
147 STATUS_BAR_IFRAME_ID: 'GOOGLE_INPUT_STATUS_BAR'
152 * @define {string} The name of the product which uses Google Input Tools API.
154 i18n.input.common.GlobalSettings.BUILD_SOURCE = 'jsapi';
158 * @define {boolean} Whether uses XMLHttpRequest or not.
160 i18n.input.common.GlobalSettings.ENABLE_XHR = false;
164 * Whether enables the statistics for IME's status bar.
165 * TODO(shuchen): Investigates how to make sure status bar won't send
166 * duplicated metrics requests. And then we can remove this flag.
168 * @type {boolean}
170 i18n.input.common.GlobalSettings.enableStatusBarMetrics = false;
174 * Whether to show on-screen keyboard.
175 * false: Hides on-screen keyboard.
176 * true: Shows on-screen keyboard.
178 * @type {boolean}
180 i18n.input.common.GlobalSettings.onScreenKeyboard = true;
184 * Whether to enable personal dictionary or not.
186 * @type {boolean}
188 i18n.input.common.GlobalSettings.enableUserDict = false;
192 * Defines the max int value.
194 * @type {number}
196 i18n.input.common.GlobalSettings.MAX_INT = 2147483647;
200 * Whether enables the user prefs.
202 * @type {boolean}
204 i18n.input.common.GlobalSettings.enableUserPrefs = true;
208 * @define {boolean} UI wrapper by iframe.
210 i18n.input.common.GlobalSettings.IFRAME_WRAPPER = false;
214 * The CSS string. When create a new iframe wrapper, need to install css style
215 * in the iframe document.
217 * @type {string}
220 i18n.input.common.GlobalSettings.css = '';
224 * Alternative image URL in CSS (e.g. Chrome extension needs a local path).
226 * @type {string}
228 i18n.input.common.GlobalSettings.alternativeImageUrl = '';
232 * @define {boolean} Whether to enable Voice input.
234 i18n.input.common.GlobalSettings.enableVoice = false;
238 * Whether to enable global event delegate.
240 * @type {boolean}
242 i18n.input.common.GlobalSettings.enableGlobalEventDelegate = true;