-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
100 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<link rel="href" src="chrome://resources/html/cr.html"> | ||
<script src="brave_sync_browser_proxy.js"></script> |
20 changes: 20 additions & 0 deletions
20
browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
cr.define('settings', function() { | ||
/** @interface */ | ||
class DefaultBraveSyncBrowserProxy {} | ||
|
||
/** | ||
* @implements {settings.DefaultBraveSyncBrowserProxy} | ||
*/ | ||
class DefaultBraveSyncBrowserProxyImpl {} | ||
|
||
cr.addSingletonGetter(DefaultBraveSyncBrowserProxyImpl); | ||
|
||
return { | ||
DefaultBraveSyncBrowserProxy, | ||
DefaultBraveSyncBrowserProxyImpl | ||
}; | ||
}); |
20 changes: 20 additions & 0 deletions
20
browser/resources/settings/brave_sync_page/brave_sync_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<link rel="import" href="chrome://resources/html/polymer.html"> | ||
|
||
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> | ||
<link rel="import" href="chrome://resources/html/md_select_css.html"> | ||
<link rel="import" href="brave_sync_browser_proxy.html"> | ||
<link rel="import" href="../settings_shared_css.html"> | ||
<link rel="import" href="../settings_vars_css.html"> | ||
|
||
<dom-module id="settings-brave-sync-page"> | ||
<template> | ||
<style include="settings-shared md-select iron-flex"> | ||
</style> | ||
<div class="settings-box"> | ||
<div class="start"> | ||
$i18n{braveSyncLabel} <a href="brave://bravesync" target="_blank">brave://bravesync</a> | ||
</div> | ||
</div> | ||
</template> | ||
<script src="brave_sync_page.js"></script> | ||
</dom-module> |
29 changes: 29 additions & 0 deletions
29
browser/resources/settings/brave_sync_page/brave_sync_page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
/** | ||
* 'settings-brave-sync-page' is the settings page containing brave's | ||
* custom sync. | ||
*/ | ||
Polymer({ | ||
is: 'settings-brave-sync-page', | ||
|
||
properties: {}, | ||
|
||
/** @private {?settings.DefaultBraveSyncBrowserProxy} */ | ||
browserProxy_: null, | ||
|
||
/** @override */ | ||
created: function() { | ||
this.browserProxy_ = settings.DefaultBraveSyncBrowserProxyImpl.getInstance(); | ||
}, | ||
|
||
/** @override */ | ||
ready: function() { | ||
}, | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters