| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 | 23 |
| 24 goog.scope(function() { | 24 goog.scope(function() { |
| 25 | 25 |
| 26 | 26 |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * The abstract class for element in input view keyboard. | 29 * The abstract class for element in input view keyboard. |
| 30 * | 30 * |
| 31 * @param {string} id The id. | 31 * @param {string} id The id. |
| 32 * @param {!i18n.input.chrome.inputview.elements.ElementType} type The element | 32 * @param {!i18n.input.chrome.ElementType} type The element |
| 33 * type. | 33 * type. |
| 34 * @param {goog.events.EventTarget=} opt_eventTarget The event target. | 34 * @param {goog.events.EventTarget=} opt_eventTarget The event target. |
| 35 * @constructor | 35 * @constructor |
| 36 * @extends {goog.ui.Component} | 36 * @extends {goog.ui.Component} |
| 37 */ | 37 */ |
| 38 i18n.input.chrome.inputview.elements.Element = function(id, type, | 38 i18n.input.chrome.inputview.elements.Element = function(id, type, |
| 39 opt_eventTarget) { | 39 opt_eventTarget) { |
| 40 goog.base(this); | 40 goog.base(this); |
| 41 this.setParentEventTarget(opt_eventTarget || null); | 41 this.setParentEventTarget(opt_eventTarget || null); |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * The id of the element. | 44 * The id of the element. |
| 45 * | 45 * |
| 46 * @type {string} | 46 * @type {string} |
| 47 */ | 47 */ |
| 48 this.id = id; | 48 this.id = id; |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * The type of the element. | 51 * The type of the element. |
| 52 * | 52 * |
| 53 * @type {!i18n.input.chrome.inputview.elements.ElementType} | 53 * @type {!i18n.input.chrome.ElementType} |
| 54 */ | 54 */ |
| 55 this.type = type; | 55 this.type = type; |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * The display of the element. | 58 * The display of the element. |
| 59 * | 59 * |
| 60 * @type {string} | 60 * @type {string} |
| 61 * @private | 61 * @private |
| 62 */ | 62 */ |
| 63 this.display_ = ''; | 63 this.display_ = ''; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 /** @override */ | 182 /** @override */ |
| 183 Element.prototype.disposeInternal = function() { | 183 Element.prototype.disposeInternal = function() { |
| 184 this.getElement()['view'] = null; | 184 this.getElement()['view'] = null; |
| 185 goog.dispose(this.handler); | 185 goog.dispose(this.handler); |
| 186 | 186 |
| 187 goog.base(this, 'disposeInternal'); | 187 goog.base(this, 'disposeInternal'); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 }); // goog.scope | 190 }); // goog.scope |
| OLD | NEW |