| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview Handles media automation events. Note that to perform any of | 6 * @fileoverview Handles media automation events. Note that to perform any of |
| 7 * the actions below such as ducking, and suspension of media sessions, the | 7 * the actions below such as ducking, and suspension of media sessions, the |
| 8 * --enable-default-media-session flag must be passed at the command line. | 8 * --enable-audio-focus flag must be passed at the command line. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 goog.provide('MediaAutomationHandler'); | 11 goog.provide('MediaAutomationHandler'); |
| 12 | 12 |
| 13 goog.require('BaseAutomationHandler'); | 13 goog.require('BaseAutomationHandler'); |
| 14 goog.require('cvox.TtsCapturingEventListener'); | 14 goog.require('cvox.TtsCapturingEventListener'); |
| 15 | 15 |
| 16 goog.scope(function() { | 16 goog.scope(function() { |
| 17 var AutomationEvent = chrome.automation.AutomationEvent; | 17 var AutomationEvent = chrome.automation.AutomationEvent; |
| 18 var AutomationNode = chrome.automation.AutomationNode; | 18 var AutomationNode = chrome.automation.AutomationNode; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 root.resumeMedia(); | 113 root.resumeMedia(); |
| 114 } | 114 } |
| 115 item = it.next(); | 115 item = it.next(); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 }); // goog.scope | 120 }); // goog.scope |
| 121 | 121 |
| 122 new MediaAutomationHandler(); | 122 new MediaAutomationHandler(); |
| OLD | NEW |