Skip to content

Commit dc8b007

Browse files
committed
cleanup: Add missing requires.
This is a port of the internal changes: cr/321495405, cr/321592702, and cr/321594488. Change-Id: If6a4c4266ed10a70b01442974dbd19329bb5122e
1 parent 1a4d03e commit dc8b007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+115
-1
lines changed

lib/ads/ad_manager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ goog.require('shaka.ads.AdsStats');
1313
goog.require('shaka.ads.ClientSideAdManager');
1414
goog.require('shaka.ads.ServerSideAdManager');
1515
goog.require('shaka.log');
16+
goog.require('shaka.util.Error');
17+
goog.require('shaka.util.FakeEvent');
1618
goog.require('shaka.util.FakeEventTarget');
1719

1820

lib/ads/client_side_ad.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
goog.provide('shaka.ads.ClientSideAd');
99

10+
goog.require('shaka.util.EventManager');
11+
12+
1013
/**
1114
* @implements {shaka.extern.IAd}
1215
* @export

lib/ads/client_side_ad_manager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/**
8+
* @fileoverview
9+
* @suppress {missingRequire} TODO(b/152540451): this shouldn't be needed
10+
*/
11+
712
goog.provide('shaka.ads.ClientSideAdManager');
813

914
goog.require('goog.asserts');

lib/ads/server_side_ad_manager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/**
8+
* @fileoverview
9+
* @suppress {missingRequire} TODO(b/152540451): this shouldn't be needed
10+
*/
11+
712
goog.provide('shaka.ads.ServerSideAdManager');
813

914
goog.require('goog.asserts');

lib/cast/cast_proxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
goog.provide('shaka.cast.CastProxy');
88

99
goog.require('goog.asserts');
10+
goog.require('shaka.Player');
1011
goog.require('shaka.cast.CastSender');
1112
goog.require('shaka.cast.CastUtils');
1213
goog.require('shaka.log');

lib/cast/cast_receiver.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
goog.provide('shaka.cast.CastReceiver');
88

99
goog.require('goog.asserts');
10+
goog.require('shaka.Player');
1011
goog.require('shaka.cast.CastUtils');
1112
goog.require('shaka.log');
1213
goog.require('shaka.util.Error');

lib/cast/cast_sender.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ goog.require('shaka.util.Error');
1313
goog.require('shaka.util.FakeEvent');
1414
goog.require('shaka.util.IDestroyable');
1515
goog.require('shaka.util.PublicPromise');
16+
goog.require('shaka.util.Timer');
1617

1718

1819
/**

lib/dash/content_protection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ goog.require('shaka.util.BufferUtils');
1212
goog.require('shaka.util.Error');
1313
goog.require('shaka.util.ManifestParserUtils');
1414
goog.require('shaka.util.Pssh');
15+
goog.require('shaka.util.StringUtils');
1516
goog.require('shaka.util.Uint8ArrayUtils');
1617
goog.require('shaka.util.XmlUtils');
1718

lib/dash/dash_parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ goog.require('shaka.util.Networking');
2929
goog.require('shaka.util.OperationManager');
3030
goog.require('shaka.util.PeriodCombiner');
3131
goog.require('shaka.util.StringUtils');
32+
goog.require('shaka.util.Timer');
3233
goog.require('shaka.util.XmlUtils');
3334

3435

lib/dash/mpd_utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ goog.require('shaka.util.Functional');
1515
goog.require('shaka.util.Iterables');
1616
goog.require('shaka.util.ManifestParserUtils');
1717
goog.require('shaka.util.XmlUtils');
18+
goog.requireType('shaka.dash.DashParser');
1819

1920

2021
/**

0 commit comments

Comments
 (0)