OLD | NEW |
(Empty) | |
| 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 // Copyright 2013 The ChromeOS VK Authors. All Rights Reserved. |
| 15 // |
| 16 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 17 // you may not use this file except in compliance with the License. |
| 18 // You may obtain a copy of the License at |
| 19 // |
| 20 // http://www.apache.org/licenses/LICENSE-2.0 |
| 21 // |
| 22 // Unless required by applicable law or agreed to in writing, software |
| 23 // distributed under the License is distributed on an "AS-IS" BASIS, |
| 24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 25 // See the License for the specific language governing permissions and |
| 26 // limitations under the License. |
| 27 |
| 28 /** |
| 29 * @fileoverview The definition of layout event. |
| 30 */ |
| 31 |
| 32 goog.provide('i18n.input.chrome.vk.LayoutEvent'); |
| 33 |
| 34 goog.require('goog.events.Event'); |
| 35 |
| 36 |
| 37 |
| 38 /** |
| 39 * The Layout Event. |
| 40 * |
| 41 * @param {i18n.input.chrome.vk.EventType} type The event type. |
| 42 * @param {Object} layoutView The layoutView object. See ParsedLayout for |
| 43 * details. |
| 44 * @constructor |
| 45 * @extends {goog.events.Event} |
| 46 */ |
| 47 i18n.input.chrome.vk.LayoutEvent = function(type, layoutView) { |
| 48 goog.base(this, type); |
| 49 |
| 50 /** |
| 51 * The layout view object. |
| 52 * |
| 53 * @type {Object} |
| 54 */ |
| 55 this.layoutView = layoutView; |
| 56 |
| 57 /** |
| 58 * The layout code. |
| 59 * |
| 60 * @type {?string} |
| 61 */ |
| 62 this.layoutCode = layoutView ? layoutView.id : null; |
| 63 }; |
| 64 goog.inherits(i18n.input.chrome.vk.LayoutEvent, goog.events.Event); |
OLD | NEW |