summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/browser_options.html
blob: 143f2e112b1832a83dd52669662b25350f04422e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<div class="page hidden" id="browserPage">
  <h1 i18n-content="browserPage"></h1>
  <section id="startupSection">
    <h3 i18n-content="startupGroupName"></h3>
    <div>
      <label class="radio"><input type="radio" name="startup"
          pref="session.restore_on_startup" value="0"
          metric="Options_Startup_Homepage">
          <span i18n-content="startupShowDefaultAndNewTab"></span></label>
      <label class="radio"><input type="radio" name="startup"
          pref="session.restore_on_startup" value="1"
          metric="Options_Startup_LastSession">
          <span i18n-content="startupShowLastSession"></span></label>
      <label class="radio"><input type="radio" name="startup" id="startupShowPagesButton"
          pref="session.restore_on_startup" value="4"
          metric="Options_Startup_Custom">
          <span i18n-content="startupShowPages"></span></label>
      <div class="suboption">
        <div class="left-side-table">
          <div>
            <list id="startupPages"></list>
          </div>
          <div>
            <div><button id="startupAddButton"
                i18n-content="startupAddButton"></button></div>
            <div><button id="startupRemoveButton"
                i18n-content="startupRemoveButton"></button></div>
            <div><button id="startupUseCurrentButton"
                i18n-content="startupUseCurrent"></button></div>
          </div>
        </div>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="homepageGroupName"></h3>
    <div>
      <label class="radio">
        <input type="radio" name="homepage" id="homepageUseNTPButton"
            value="true" metric="Options_Homepage_IsNewTabPage">
        <span i18n-content="homepageUseNewTab"></span>
      </label>
      <div id="customHomePageGroup">
        <label class="radio">
          <input type="radio" name="homepage" id="homepageUseURLButton"
              value="false" metric="Options_Homepage_IsNewTabPage">
          <span i18n-content="homepageUseURL"></span>
        </label>
        <div>
          <input id="homepageURL" class="favicon-cell" type="url">
        </div>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="toolbarGroupName"></h3>
    <div>
      <div class="option">
        <label class="checkbox">
          <input id="toolbarShowHomeButton" pref="browser.show_home_button"
              metric="Options_Homepage_HomeButton" type="checkbox">
          <span i18n-content="toolbarShowHomeButton"></span>
        </label>
      </div>
    </div>
  </section>
  <section>
    <h3 i18n-content="defaultSearchGroupName"></h3>
      <div id="defaultSearchEngineGroup">
        <div>
          <select id="defaultSearchEngine"
              onchange="BrowserOptions.getInstance().setDefaultSearchEngine()">
          </select>
          <button id="defaultSearchManageEnginesButton"
              i18n-content="defaultSearchManageEnginesLink"></button>
        </div>
        <label class="checkbox" id="instantOption">
          <!-- TODO(estade): metric? -->
          <input type="checkbox" id="instantEnableCheckbox"
                 pref="instant.enabled">
          <span i18n-content="instantName"></span>
          <!-- This hidden checkbox allows us to get/set the state of the
               confirm_dialog_shown pref -->
          <input type="checkbox" class="hidden" id="instantDialogShown"
                 pref="instant.confirm_dialog_shown">
        </label>
        <div class="suboption">
          <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>