Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: third_party/google_input_tools/src/chrome/os/inputview/elements/element.js

Issue 1576613002: Update Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing APIs, remove bade dependencies. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698