OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * A controller class detects mouse inactivity and hides "tool" elements. | 8 * A controller class detects mouse inactivity and hides "tool" elements. |
9 * | 9 * |
10 * @param {Element} container The main DOM container. | 10 * @param {Element} container The main DOM container. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 /** | 171 /** |
172 * Timeout handler. | 172 * Timeout handler. |
173 * @private | 173 * @private |
174 */ | 174 */ |
175 MouseInactivityWatcher.prototype.onTimeout_ = function() { | 175 MouseInactivityWatcher.prototype.onTimeout_ = function() { |
176 this.timeoutID_ = null; | 176 this.timeoutID_ = null; |
177 if (!this.disabled_ && !this.toolsActive_()) | 177 if (!this.disabled_ && !this.toolsActive_()) |
178 this.showTools(false); | 178 this.showTools(false); |
179 }; | 179 }; |
OLD | NEW |