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

Unified Diff: elements/viewer-toolbar/viewer-toolbar.html

Issue 137703012: Run PRESUBMIT checks over existing files in html-office-public (Closed) Base URL: https://chromium.googlesource.com/chromium/html-office-public.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « elements/viewer-toolbar/viewer-toolbar.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: elements/viewer-toolbar/viewer-toolbar.html
diff --git a/elements/viewer-toolbar/viewer-toolbar.html b/elements/viewer-toolbar/viewer-toolbar.html
index c6fc1649b567d8ab00cadd78aab8a6e84854d502..89fc69a08f61682e7bdb374c4aa95b6c9699c32e 100644
--- a/elements/viewer-toolbar/viewer-toolbar.html
+++ b/elements/viewer-toolbar/viewer-toolbar.html
@@ -1,42 +1,42 @@
<polymer-element name="viewer-toolbar" attributes="fadingIn"
on-mouseover="{{fadeIn}}" on-mousemove="{{fadeIn}}"
on-mouseout="{{fadeOut}}">
- <template>
- <link rel="stylesheet" href="viewer-toolbar.css">
- <div id="toolbar">
- <content></content>
- </div>
- </template>
- <script>
- Polymer('viewer-toolbar', {
- fadingIn: false,
- timerId: undefined,
- ready: function() {
- this.fadingInChanged();
- },
- fadeIn: function() {
- this.fadingIn = true;
- },
- fadeOut: function() {
- this.fadingIn = false;
- },
- fadingInChanged: function() {
- if (this.fadingIn) {
- this.style.opacity = 1;
- if (this.timerId !== undefined) {
- clearTimeout(this.timerId);
- this.timerId = undefined;
- }
- } else {
- if (this.timerId === undefined) {
- this.timerId = setTimeout(
- function() {
- this.style.opacity = 0;
- this.timerId = undefined;
- }.bind(this), 3000);
- }
+<template>
+ <link rel="stylesheet" href="viewer-toolbar.css">
+ <div id="toolbar">
+ <content></content>
+ </div>
+</template>
+<script>
+ Polymer('viewer-toolbar', {
+ fadingIn: false,
+ timerId: undefined,
+ ready: function() {
+ this.fadingInChanged();
+ },
+ fadeIn: function() {
+ this.fadingIn = true;
+ },
+ fadeOut: function() {
+ this.fadingIn = false;
+ },
+ fadingInChanged: function() {
+ if (this.fadingIn) {
+ this.style.opacity = 1;
+ if (this.timerId !== undefined) {
+ clearTimeout(this.timerId);
+ this.timerId = undefined;
+ }
+ } else {
+ if (this.timerId === undefined) {
+ this.timerId = setTimeout(
+ function() {
+ this.style.opacity = 0;
+ this.timerId = undefined;
+ }.bind(this), 3000);
}
}
- });
- </script>
+ }
+ });
+</script>
</polymer-element>
« no previous file with comments | « elements/viewer-toolbar/viewer-toolbar.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698