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