Chromium Code Reviews| Index: chrome/browser/resources/settings/settings_ui/settings_ui_types.js |
| diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui_types.js b/chrome/browser/resources/settings/settings_ui/settings_ui_types.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4727c62031c046c4140f730f1902d8e4aeb5bf00 |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/settings_ui/settings_ui_types.js |
| @@ -0,0 +1,60 @@ |
| +// Copyright 2016 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. |
| + |
| +/** |
| + * @fileoverview Closure typedefs for settings_ui. |
| + */ |
| + |
| +/** |
| + * Specifies page visibility in guest mode in cr and cros. |
| + * @typedef {{ |
| + * advancedSettings: (boolean|undefined), |
| + * appearance: (boolean|undefined|AppearancePageVisibility), |
| + * dateTime: (boolean|undefined|DateTimePageVisibility), |
| + * defaultBrowser: (boolean|undefined), |
| + * downloads: (undefined|DownloadsPageVisibility), |
| + * onStartup: (boolean|undefined), |
| + * passwordsAndForms: (boolean|undefined), |
| + * people: (boolean|undefined), |
| + * privacy: (undefined|PrivacyPageVisibility), |
| + * reset:(boolean|undefined), |
|
michaelpg
2016/07/26 04:02:55
I thought closure objects couldn't end in commas l
Moe
2016/07/27 01:11:05
It seems to compile just fine.
|
| + * }} |
| + */ |
| +var GuestModePageVisibility; |
| + |
| +/** |
| + * @typedef {{ |
| + * bookmarksBar: boolean, |
| + * homeButton: boolean, |
| + * pageZoom: boolean, |
| + * setTheme: boolean, |
| + * setWallpaper: boolean, |
| + * }} |
| + */ |
| +var AppearancePageVisibility; |
| + |
| +/** |
| + * @typedef {{ |
| + * timeZoneSelector: boolean, |
| + * }} |
| + */ |
| +var DateTimePageVisibility; |
| + |
| +/** |
| + * @typedef {{ |
| + * googleDrive: boolean |
| + * }} |
| + */ |
| +var DownloadsPageVisibility; |
| + |
| +/** |
| + * @typedef {{ |
| + * networkPrediction: boolean, |
| + * searchPrediction: boolean, |
| + * }} |
| + */ |
| +var PrivacyPageVisibility; |
| + |
| +// TODO(mahmadi): Dummy code for closure compiler to process this file. |
| +(function foo() {})(); |