OLD | NEW |
1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. | 1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. |
2 // limitations under the License. | 2 // limitations under the License. |
3 // See the License for the specific language governing permissions and | 3 // See the License for the specific language governing permissions and |
4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
5 // distributed under the License is distributed on an "AS-IS" BASIS, | 5 // distributed under the License is distributed on an "AS-IS" BASIS, |
6 // Unless required by applicable law or agreed to in writing, software | 6 // Unless required by applicable law or agreed to in writing, software |
7 // | 7 // |
8 // http://www.apache.org/licenses/LICENSE-2.0 | 8 // http://www.apache.org/licenses/LICENSE-2.0 |
9 // | 9 // |
10 // You may obtain a copy of the License at | 10 // You may obtain a copy of the License at |
(...skipping 26 matching lines...) Expand all Loading... |
37 CLICK: goog.events.getUniqueId('c'), | 37 CLICK: goog.events.getUniqueId('c'), |
38 CONFIG_LOADED: goog.events.getUniqueId('cl'), | 38 CONFIG_LOADED: goog.events.getUniqueId('cl'), |
39 DOUBLE_CLICK: goog.events.getUniqueId('dc'), | 39 DOUBLE_CLICK: goog.events.getUniqueId('dc'), |
40 DOUBLE_CLICK_END: goog.events.getUniqueId('dce'), | 40 DOUBLE_CLICK_END: goog.events.getUniqueId('dce'), |
41 DRAG: goog.events.getUniqueId('dg'), | 41 DRAG: goog.events.getUniqueId('dg'), |
42 LAYOUT_LOADED: goog.events.getUniqueId('ll'), | 42 LAYOUT_LOADED: goog.events.getUniqueId('ll'), |
43 LONG_PRESS: goog.events.getUniqueId('lp'), | 43 LONG_PRESS: goog.events.getUniqueId('lp'), |
44 LONG_PRESS_END: goog.events.getUniqueId('lpe'), | 44 LONG_PRESS_END: goog.events.getUniqueId('lpe'), |
45 POINTER_DOWN: goog.events.getUniqueId('pd'), | 45 POINTER_DOWN: goog.events.getUniqueId('pd'), |
46 POINTER_UP: goog.events.getUniqueId('pu'), | 46 POINTER_UP: goog.events.getUniqueId('pu'), |
47 POINTER_OVER: goog.events.getUniqueId('po'), | 47 POINTER_OVER: goog.events.getUniqueId('pv'), |
48 POINTER_OUT: goog.events.getUniqueId('po'), | 48 POINTER_OUT: goog.events.getUniqueId('po'), |
| 49 REFRESH: goog.events.getUniqueId('rf'), |
49 SETTINGS_READY: goog.events.getUniqueId('sr'), | 50 SETTINGS_READY: goog.events.getUniqueId('sr'), |
50 SURROUNDING_TEXT_CHANGED: goog.events.getUniqueId('stc'), | 51 SURROUNDING_TEXT_CHANGED: goog.events.getUniqueId('stc'), |
51 SWIPE: goog.events.getUniqueId('s'), | 52 SWIPE: goog.events.getUniqueId('s'), |
52 CONTEXT_UPDATE: goog.events.getUniqueId('cu'), | 53 CONTEXT_UPDATE: goog.events.getUniqueId('cu'), |
53 CONTEXT_FOCUS: goog.events.getUniqueId('cf'), | 54 CONTEXT_FOCUS: goog.events.getUniqueId('cf'), |
54 CONTEXT_BLUR: goog.events.getUniqueId('cb'), | 55 CONTEXT_BLUR: goog.events.getUniqueId('cb'), |
55 VISIBILITY_CHANGE: goog.events.getUniqueId('vc'), | 56 VISIBILITY_CHANGE: goog.events.getUniqueId('vc'), |
56 MODEL_UPDATE: goog.events.getUniqueId('mu') | 57 MODEL_UPDATE: goog.events.getUniqueId('mu'), |
| 58 URL_CHANGED: goog.events.getUniqueId('uc') |
57 }; | 59 }; |
58 | 60 |
59 | 61 |
60 | 62 |
61 /** | 63 /** |
62 * The event when the data is loaded complete. | 64 * The event when the data is loaded complete. |
63 * | 65 * |
64 * @param {!Object} data The layout data. | 66 * @param {!Object} data The layout data. |
65 * @constructor | 67 * @constructor |
66 * @extends {goog.events.Event} | 68 * @extends {goog.events.Event} |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 this.deltaY = deltaY; | 213 this.deltaY = deltaY; |
212 }; | 214 }; |
213 goog.inherits(events.DragEvent, events.PointerEvent); | 215 goog.inherits(events.DragEvent, events.PointerEvent); |
214 | 216 |
215 | 217 |
216 | 218 |
217 /** | 219 /** |
218 * The event when the surrounding text is changed. | 220 * The event when the surrounding text is changed. |
219 * | 221 * |
220 * @param {string} text The surrounding text. | 222 * @param {string} text The surrounding text. |
| 223 * @param {number} anchor . |
| 224 * @param {number} focus . |
221 * @constructor | 225 * @constructor |
222 * @extends {goog.events.Event} | 226 * @extends {goog.events.Event} |
223 */ | 227 */ |
224 events.SurroundingTextChangedEvent = function(text) { | 228 events.SurroundingTextChangedEvent = function(text, anchor, focus) { |
225 goog.base(this, events.EventType.SURROUNDING_TEXT_CHANGED); | 229 goog.base(this, events.EventType.SURROUNDING_TEXT_CHANGED); |
226 | 230 |
227 /** @type {string} */ | 231 /** @type {string} */ |
228 this.text = text; | 232 this.text = text; |
| 233 /** @type {number} */ |
| 234 this.anchor = anchor; |
| 235 /** @type {number} */ |
| 236 this.focus = focus; |
229 }; | 237 }; |
230 goog.inherits(events.SurroundingTextChangedEvent, goog.events.Event); | 238 goog.inherits(events.SurroundingTextChangedEvent, goog.events.Event); |
231 | 239 |
232 | 240 |
233 | 241 |
234 /** | 242 /** |
235 * The event when context is updated. | 243 * The event when context is updated. |
236 * | 244 * |
237 * @param {string} compositionText . | 245 * @param {string} compositionText . |
238 * @param {string} committedText . | 246 * @param {string} committedText . |
239 * @constructor | 247 * @constructor |
240 * @extends {goog.events.Event} | 248 * @extends {goog.events.Event} |
241 */ | 249 */ |
242 events.ContextUpdateEvent = function(compositionText, committedText) { | 250 events.ContextUpdateEvent = function(compositionText, committedText) { |
243 goog.base(this, events.EventType.CONTEXT_UPDATE); | 251 goog.base(this, events.EventType.CONTEXT_UPDATE); |
244 | 252 |
245 /** @type {string} */ | 253 /** @type {string} */ |
246 this.compositionText = compositionText; | 254 this.compositionText = compositionText; |
247 | 255 |
248 /** @type {string} */ | 256 /** @type {string} */ |
249 this.committedText = committedText; | 257 this.committedText = committedText; |
250 }; | 258 }; |
251 goog.inherits(events.ContextUpdateEvent, goog.events.Event); | 259 goog.inherits(events.ContextUpdateEvent, goog.events.Event); |
252 | 260 |
253 }); // goog.scope | 261 }); // goog.scope |
OLD | NEW |