B2G/gecko/browser/devtools/styleeditor/StyleEditorChrome.jsm
/**
   * Set up the chrome UI. Install event listeners and so on.
   */
Set up the chrome UI. Install event listeners and so on.
Set up the chrome UI . Install event listeners and so on .
function SEC__setupChrome()
  {
    wire(this._view.rootElement, ".style-editor-newButton", function onNewButton() {
      let editor = new StyleEditor(this.contentDocument);
      this._editors.push(editor);
      editor.addActionListener(this);
      editor.load();
    }.bind(this));
    wire(this._view.rootElement, ".style-editor-importButton", function onImportButton() {
      let editor = new StyleEditor(this.contentDocument);
      this._editors.push(editor);
      editor.addActionListener(this);
      editor.importFromFile(this._mockImportFile || null, this._window);
    }.bind(this));
  }
function SEC__setupChrome ( ) { wire ( this . _view . rootElement , ".style-editor-newButton" , function onNewButton ( ) { let editor = new StyleEditor ( this . contentDocument ) ; this . _editors . push ( editor ) ; editor . addActionListener ( this ) ; editor . load ( ) ; } . bind ( this ) ) ; wire ( this . _view . rootElement , ".style-editor-importButton" , function onImportButton ( ) { let editor = new StyleEditor ( this . contentDocument ) ; this . _editors . push ( editor ) ; editor . addActionListener ( this ) ; editor . importFromFile ( this . _mockImportFile || null , this . _window ) ; } . bind ( this ) ) ; }
Set up the chrome UI.
Set up the chrome UI .
// wire up UI elements