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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 /** | 36 /** |
37 * The handler for strokes. | 37 * The handler for strokes. |
38 * | 38 * |
39 * @param {!Element} canvas The handwriting canvas. | 39 * @param {!Element} canvas The handwriting canvas. |
40 * @param {!Document} topDocument The top document. | 40 * @param {!Document} topDocument The top document. |
41 * @constructor | 41 * @constructor |
42 * @extends {goog.events.EventTarget} | 42 * @extends {goog.events.EventTarget} |
43 */ | 43 */ |
44 i18n.input.hwt.StrokeHandler = function(canvas, topDocument) { | 44 i18n.input.hwt.StrokeHandler = function(canvas, topDocument) { |
45 goog.base(this); | 45 i18n.input.hwt.StrokeHandler.base(this, 'constructor'); |
46 | 46 |
47 /** | 47 /** |
48 * The event handler. | 48 * The event handler. |
49 * | 49 * |
50 * @type {goog.events.EventHandler} | 50 * @type {goog.events.EventHandler} |
51 * @private | 51 * @private |
52 */ | 52 */ |
53 this.eventHandler_ = new goog.events.EventHandler(this); | 53 this.eventHandler_ = new goog.events.EventHandler(this); |
54 | 54 |
55 /** | 55 /** |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 /** | 234 /** |
235 * The stroke event. | 235 * The stroke event. |
236 * | 236 * |
237 * @param {!i18n.input.hwt.StrokeHandler.EventType} type The event type. | 237 * @param {!i18n.input.hwt.StrokeHandler.EventType} type The event type. |
238 * @param {!i18n.input.hwt.StrokeHandler.Point} point The point. | 238 * @param {!i18n.input.hwt.StrokeHandler.Point} point The point. |
239 * @constructor | 239 * @constructor |
240 * @extends {goog.events.Event} | 240 * @extends {goog.events.Event} |
241 */ | 241 */ |
242 i18n.input.hwt.StrokeHandler.StrokeEvent = function(type, point) { | 242 i18n.input.hwt.StrokeHandler.StrokeEvent = function(type, point) { |
243 goog.base(this, type); | 243 i18n.input.hwt.StrokeHandler.StrokeEvent.base(this, 'constructor', type); |
244 | 244 |
245 /** | 245 /** |
246 * The point. | 246 * The point. |
247 * | 247 * |
248 * @type {!i18n.input.hwt.StrokeHandler.Point} | 248 * @type {!i18n.input.hwt.StrokeHandler.Point} |
249 */ | 249 */ |
250 this.point = point; | 250 this.point = point; |
251 }; | 251 }; |
252 goog.inherits(i18n.input.hwt.StrokeHandler.StrokeEvent, goog.events.Event); | 252 goog.inherits(i18n.input.hwt.StrokeHandler.StrokeEvent, goog.events.Event); |
OLD | NEW |