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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js

Issue 1046933003: Updates google-input-tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js
index 30897fa5868dee24967a5812f64896eaa6c5e204..6888d63cbc40d45e7b1751915990adf899ef0a9d 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/candidatebutton.js
@@ -121,5 +121,15 @@ CandidateButton.prototype.resize = function(width, height) {
};
+/** @override */
+CandidateButton.prototype.setVisible = function(visible) {
+ var ret = CandidateButton.base(this, 'setVisible', visible);
+ if (this.type == ElementType.VOICE_BTN) {
+ var elem = this.getElement();
+ elem.style.webkitAnimation = (visible ? 'visible' : 'invisible') +
+ '-animation .4s ease';
+ }
+ return ret;
+};
}); // goog.scope

Powered by Google App Engine
This is Rietveld 408576698