| Index: chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| diff --git a/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js b/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..654e6afc93ed09473b742c02e3bc4d30a151937a
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| @@ -0,0 +1,54 @@
|
| +// 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 Handles interprocess communcation for the system page. */
|
| +
|
| +cr.define('settings', function() {
|
| + /** @interface */
|
| + function SystemPageBrowserProxy() {}
|
| +
|
| + SystemPageBrowserProxy.prototype = {
|
| + /** Allows the user to change native system proxy settings. */
|
| + changeProxySettings: function() {},
|
| +
|
| + /** Restarts Chrome so "Use hardware acceleration" can take effect. */
|
| + restartBrowser: function() {},
|
| +
|
| + /**
|
| + * @return {boolean} Whether hardware acceleration was enabled when the user
|
| + * started Chrome.
|
| + */
|
| + wasHardwareAccelerationEnabledAtStartup: function() {},
|
| + };
|
| +
|
| + /**
|
| + * @constructor
|
| + * @implements {settings.SystemPageBrowserProxy}
|
| + */
|
| + function SystemPageBrowserProxyImpl() {}
|
| +
|
| + cr.addSingletonGetter(SystemPageBrowserProxyImpl);
|
| +
|
| + SystemPageBrowserProxyImpl.prototype = {
|
| + /** @override */
|
| + changeProxySettings: function() {
|
| + chrome.send('changeProxySettings');
|
| + },
|
| +
|
| + /** @override */
|
| + restartBrowser: function() {
|
| + chrome.send('restartBrowser');
|
| + },
|
| +
|
| + /** @override */
|
| + wasHardwareAccelerationEnabledAtStartup: function() {
|
| + return loadTimeData.getBoolean('hardwareAccelerationEnabledAtStartup');
|
| + },
|
| + };
|
| +
|
| + return {
|
| + SystemPageBrowserProxy: SystemPageBrowserProxy,
|
| + SystemPageBrowserProxyImpl: SystemPageBrowserProxyImpl,
|
| + };
|
| +});
|
|
|