Skip to content

Commit

Permalink
cleanup: Add missing requires.
Browse files Browse the repository at this point in the history
This is a port of the internal changes: cl/329816039

Change-Id: If162e80e107ef7dc40956d6f4160d24f6d50858d
  • Loading branch information
theodab committed Sep 14, 2020
1 parent 5137898 commit 67a49d4
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions ui/ad_counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ goog.require('shaka.ui.Localization');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.Timer');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/ad_position.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ goog.require('shaka.ui.Locales');
goog.require('shaka.ui.Localization');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/audio_language_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ goog.require('shaka.ui.OverflowMenu');
goog.require('shaka.ui.SettingsMenu');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.ui.Controls');

/**
* @extends {shaka.ui.SettingsMenu}
Expand Down
1 change: 1 addition & 0 deletions ui/big_play_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
goog.provide('shaka.ui.BigPlayButton');

goog.require('shaka.ui.PlayButton');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
2 changes: 2 additions & 0 deletions ui/cast_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.Error');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.cast.CastProxy');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
7 changes: 4 additions & 3 deletions ui/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ goog.provide('shaka.ui.ControlsPanel');
goog.require('goog.asserts');
goog.require('shaka.Deprecate');
goog.require('shaka.ads.AdManager');
goog.require('shaka.cast.CastProxy');
goog.require('shaka.log');
goog.require('shaka.ui.AdCounter');
goog.require('shaka.ui.AdPosition');
Expand All @@ -19,13 +20,13 @@ goog.require('shaka.ui.Locales');
goog.require('shaka.ui.Localization');
goog.require('shaka.ui.SeekBar');
goog.require('shaka.ui.Utils');
goog.require('shaka.cast.CastProxy');
goog.require('shaka.util.Dom');
goog.require('shaka.util.EventManager');
goog.require('shaka.util.FakeEvent');
goog.require('shaka.util.FakeEventTarget');
goog.require('shaka.util.IDestroyable');
goog.require('shaka.util.Timer');
goog.requireType('shaka.Player');


/**
Expand Down Expand Up @@ -74,10 +75,10 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
/** @private {shaka.extern.IAdManager} */
this.adManager_ = this.player_.getAdManager();

/** @private {shaka.extern.IAd} */
/** @private {?shaka.extern.IAd} */
this.ad_ = null;

/** @private {shaka.ui.SeekBar} */
/** @private {?shaka.ui.SeekBar} */
this.seekBar_ = null;

/** @private {boolean} */
Expand Down
5 changes: 4 additions & 1 deletion ui/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ goog.provide('shaka.ui.Element');

goog.require('shaka.ads.AdManager');
goog.require('shaka.util.EventManager');
goog.requireType('shaka.Player');
goog.requireType('shaka.ui.Controls');
goog.requireType('shaka.ui.Localization');


/**
Expand Down Expand Up @@ -65,7 +68,7 @@ shaka.ui.Element = class {
this.adManager = this.player.getAdManager();

/**
* @protected {shaka.extern.IAd}
* @protected {?shaka.extern.IAd}
* @exportInterface
*/
this.ad = null;
Expand Down
1 change: 1 addition & 0 deletions ui/language_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ goog.require('shaka.ui.Locales');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.LanguageUtils');
goog.requireType('shaka.ui.Localization');


shaka.ui.LanguageUtils = class {
Expand Down
1 change: 1 addition & 0 deletions ui/loop_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ goog.require('shaka.ui.Localization');
goog.require('shaka.ui.OverflowMenu');
goog.require('shaka.util.Dom');
goog.require('shaka.util.Timer');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/pip_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ goog.require('shaka.ui.OverflowMenu');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/play_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ goog.require('shaka.ui.Element');
goog.require('shaka.ui.Locales');
goog.require('shaka.ui.Localization');
goog.require('shaka.util.Dom');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/playback_rate_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ goog.require('shaka.ui.OverflowMenu');
goog.require('shaka.ui.SettingsMenu');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.requireType('shaka.ui.Controls');

/**
* @extends {shaka.ui.SettingsMenu}
Expand Down
1 change: 1 addition & 0 deletions ui/range_element.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ goog.provide('shaka.ui.RangeElement');

goog.require('shaka.ui.Element');
goog.require('shaka.util.Dom');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/resolution_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ goog.require('shaka.ui.SettingsMenu');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
2 changes: 2 additions & 0 deletions ui/seek_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ goog.require('shaka.ui.RangeElement');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.Timer');
goog.requireType('shaka.ads.CuePoint');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/settings_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ goog.require('shaka.ui.Enums');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/skip_ad_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ goog.require('shaka.ui.Localization');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.Timer');
goog.requireType('shaka.ui.Controls');


/**
Expand Down
1 change: 1 addition & 0 deletions ui/text_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ goog.require('shaka.ui.SettingsMenu');
goog.require('shaka.ui.Utils');
goog.require('shaka.util.Dom');
goog.require('shaka.util.FakeEvent');
goog.requireType('shaka.ui.Controls');


/**
Expand Down

0 comments on commit 67a49d4

Please sign in to comment.