B2G/gecko/browser/base/content/browser-social.js
// Called on delayed startup to initialize UI
Called on delayed startup to initialize UI
Called on delayed startup to initialize UI
function SocialUI_init() {
    Services.obs.addObserver(this, "social:pref-changed", false);
    Services.obs.addObserver(this, "social:ambient-notification-changed", false);
    Services.obs.addObserver(this, "social:profile-changed", false);
    Services.obs.addObserver(this, "social:frameworker-error", false);
    Services.prefs.addObserver("social.sidebar.open", this, false);
    Services.prefs.addObserver("social.toast-notifications.enabled", this, false);
    gBrowser.addEventListener("ActivateSocialFeature", this._activationEventHandler, true, true);
    window.addEventListener("mozfullscreenchange", function () {
      SocialSidebar.update();
      SocialChatBar.update();
    });
    Social.init(this._providerReady.bind(this));
  }
function SocialUI_init ( ) { Services . obs . addObserver ( this , "social:pref-changed" , false ) ; Services . obs . addObserver ( this , "social:ambient-notification-changed" , false ) ; Services . obs . addObserver ( this , "social:profile-changed" , false ) ; Services . obs . addObserver ( this , "social:frameworker-error" , false ) ; Services . prefs . addObserver ( "social.sidebar.open" , this , false ) ; Services . prefs . addObserver ( "social.toast-notifications.enabled" , this , false ) ; gBrowser . addEventListener ( "ActivateSocialFeature" , this . _activationEventHandler , true , true ) ; window . addEventListener ( "mozfullscreenchange" , function ( ) { SocialSidebar . update ( ) ; SocialChatBar . update ( ) ; } ) ; Social . init ( this . _providerReady . bind ( this ) ) ; }
Called on delayed startup to initialize UI
Called on delayed startup to initialize UI
// Called when we enter DOM full-screen mode.