OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <link rel="import" href="/tracing/base/guid.html"> | 7 <link rel="import" href="/tracing/base/guid.html"> |
8 <link rel="import" href="/tracing/ui/base/hot_key.html"> | 8 <link rel="import" href="/tracing/ui/base/hot_key.html"> |
9 | 9 |
10 <dom-module id='tv-ui-b-hotkey-controller'> | 10 <dom-module id='tv-ui-b-hotkey-controller'> |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 289 |
290 function findHost(initialNode) { | 290 function findHost(initialNode) { |
291 var node = initialNode; | 291 var node = initialNode; |
292 while (Polymer.dom(node).parentNode) { | 292 while (Polymer.dom(node).parentNode) { |
293 node = Polymer.dom(node).parentNode; | 293 node = Polymer.dom(node).parentNode; |
294 } | 294 } |
295 return node.host; | 295 return node.host; |
296 } | 296 } |
297 | 297 |
298 return { | 298 return { |
299 getHotkeyControllerForElement: getHotkeyControllerForElement | 299 getHotkeyControllerForElement, |
300 }; | 300 }; |
301 }); | 301 }); |
302 </script> | 302 </script> |
OLD | NEW |