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'); |
+ if (geolocationCheckboxContainer) { |
+ geolocationCheckboxContainer.hidden = false; |
+ } |
+ }; |
+ |
+ return { |
+ GeolocationOptions: GeolocationOptions |
+ }; |
+}); |