Html程序  |  119行  |  3.98 KB

<div id="browserPage" class="page hidden">
  <h1 i18n-content="browserPage"></h1>
  <section id="startupSection">
    <h3 i18n-content="startupGroupName"></h3>
    <div>
      <div class="radio">
        <label>
          <input type="radio" name="startup" pref="session.restore_on_startup"
              value="0" metric="Options_Startup_Homepage">
          <span i18n-content="startupShowDefaultAndNewTab"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input type="radio" name="startup" pref="session.restore_on_startup"
              value="1" metric="Options_Startup_LastSession">
          <span i18n-content="startupShowLastSession"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input type="radio" name="startup" id="startupShowPagesButton"
              pref="session.restore_on_startup" value="4"
              metric="Options_Startup_Custom">
          <span id="startupShowPagesLabel"
              i18n-content="startupShowPages"></span>
        </label>
      </div>
      <div class="suboption">
        <div id="startupPageManagement" class="settings-list">
          <list id="startupPagesList"></list>
          <div>
            <button id="startupUseCurrentButton"
                i18n-content="startupUseCurrent"></button>
          </div>
        </div>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="homepageGroupName"></h3>
    <div>
      <div class="radio">
        <label>
          <input type="radio" name="homepage" id="homepageUseNTPButton"
              value="true" metric="Options_Homepage_IsNewTabPage">
          <span i18n-content="homepageUseNewTab"></span>
        </label>
      </div>
      <div id="customHomePageGroup">
        <div class="radio">
          <label>
            <input type="radio" name="homepage" id="homepageUseURLButton"
                value="false" metric="Options_Homepage_IsNewTabPage">
            <span i18n-content="homepageUseURL"></span>
          </label>
        </div>
        <div>
          <input id="homepageURL" class="favicon-cell" type="url">
        </div>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="toolbarGroupName"></h3>
    <div>
      <div class="checkbox">
        <label>
          <input id="toolbarShowHomeButton" pref="browser.show_home_button"
              metric="Options_Homepage_HomeButton" type="checkbox">
          <span i18n-content="toolbarShowHomeButton"></span>
        </label>
      </div>
      <div class="checkbox">
        <label>
          <input id="toolbarShowBookmarksBar"
              pref="bookmark_bar.show_on_all_tabs"
              metric="ShowBookmarksBar" type="checkbox">
          <span i18n-content="toolbarShowBookmarksBar"></span>
        </label>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="defaultSearchGroupName"></h3>
      <div id="defaultSearchEngineGroup">
        <div>
          <select id="defaultSearchEngine"></select>
          <button id="defaultSearchManageEnginesButton"
              i18n-content="defaultSearchManageEngines"></button>
        </div>
        <div class="checkbox" id="instantOption">
          <label>
            <!-- TODO(estade): metric? -->
            <input type="checkbox" id="instantEnableCheckbox"
                pref="instant.enabled">
            <span i18n-content="instantName"></span>
          </label>
        </div>
        <div class="suboption informational-text">
          <span i18n-content="instantWarningText"></span>
          <a target="_blank" i18n-values="href:instantLearnMoreLink"
             i18n-content="learnMore"></a>
        </div>
      </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="defaultBrowserGroupName"></h3>
    <div>
      <button id="defaultBrowserUseAsDefaultButton"
          i18n-content="defaultBrowserUseAsDefault"></button>
      <div id="defaultBrowserState"
          i18n-content="defaultBrowserUnknown"></div>
    </div>
  </section>
</if>
</div>