Chromium Code Reviews| Index: chrome/browser/resources/options/geolocation_options.js |
| =================================================================== |
| --- chrome/browser/resources/options/geolocation_options.js (revision 0) |
| +++ chrome/browser/resources/options/geolocation_options.js (working copy) |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +cr.define('options', function() { |
| + var OptionsPage = options.OptionsPage; |
| + |
| + /** |
| + * GeolocationOptions class |
| + * Handles initialization of the geolocation options. |
| + * @constructor |
| + * @class |
| + */ |
| + function GeolocationOptions() { |
| + OptionsPage.call(this, |
| + 'geolocationOptions', |
| + loadTimeData.getString('geolocationOptionsPageTabTitle'), |
| + 'geolocationCheckbox'); |
| + }; |
| + |
| + cr.addSingletonGetter(GeolocationOptions); |
| + |
| + GeolocationOptions.prototype = { |
| + __proto__: OptionsPage.prototype |
| + }; |
| + |
| + GeolocationOptions.showGeolocationOption = function() { |
| + var geolocationCheckboxContainer = $('geolocationCheckbox'); |
|
Evan Stade
2013/06/10 18:06:10
indent is 2 too much
robliao
2013/06/10 18:58:49
Done.
|
| + if (geolocationCheckboxContainer) { |
|
Evan Stade
2013/06/10 18:06:10
nit: doesn't seem like you need this check --- the
robliao
2013/06/10 18:58:49
Done.
|
| + geolocationCheckboxContainer.hidden = false; |
| + } |
| + }; |
| + |
| + return { |
| + GeolocationOptions: GeolocationOptions |
| + }; |
| +}); |