OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('options', function() { | 5 cr.define('options', function() { |
6 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
7 | 7 |
8 /** | 8 /** |
9 * GeolocationOptions class | 9 * GeolocationOptions class |
10 * Handles initialization of the geolocation options. | 10 * Handles initialization of the geolocation options. |
11 * @constructor | 11 * @constructor |
12 * @extends {cr.ui.pageManager.Page} | 12 * @extends {cr.ui.pageManager.Page} |
13 */ | 13 */ |
14 function GeolocationOptions() { | 14 function GeolocationOptions() { |
15 Page.call(this, 'geolocationOptions', | 15 Page.call(this, 'geolocationOptions', |
16 loadTimeData.getString('geolocationOptionsPageTabTitle'), | 16 loadTimeData.getString('geolocationOptionsPageTabTitle'), |
17 'geolocationCheckbox'); | 17 'geolocationCheckbox'); |
18 }; | 18 } |
19 | 19 |
20 cr.addSingletonGetter(GeolocationOptions); | 20 cr.addSingletonGetter(GeolocationOptions); |
21 | 21 |
22 GeolocationOptions.prototype = { | 22 GeolocationOptions.prototype = { |
23 __proto__: Page.prototype | 23 __proto__: Page.prototype |
24 }; | 24 }; |
25 | 25 |
26 // TODO(robliao): Determine if a full unroll is necessary | 26 // TODO(robliao): Determine if a full unroll is necessary |
27 // (http://crbug.com/306613). | 27 // (http://crbug.com/306613). |
28 GeolocationOptions.showGeolocationOption = function() {}; | 28 GeolocationOptions.showGeolocationOption = function() {}; |
29 | 29 |
30 return { | 30 return { |
31 GeolocationOptions: GeolocationOptions | 31 GeolocationOptions: GeolocationOptions |
32 }; | 32 }; |
33 }); | 33 }); |
OLD | NEW |