Index: chrome/browser/resources/chromeos/login/saml_interstitial.js |
diff --git a/chrome/browser/resources/chromeos/login/saml_interstitial.js b/chrome/browser/resources/chromeos/login/saml_interstitial.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eb7d063645a28027c5231a16ebc085a043e5d1c3 |
--- /dev/null |
+++ b/chrome/browser/resources/chromeos/login/saml_interstitial.js |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+Polymer({ |
+ is: 'saml-interstitial', |
+ |
+ properties: { |
+ domain: { |
+ type: String, |
+ observer: 'onDomainChanged_' |
+ }, |
+ |
+ showDomainMessages_: { |
+ type: Boolean, |
+ value: false |
+ }, |
+ }, |
+ onDomainChanged_: function() { |
+ this.$.message.content = |
+ loadTimeData.getStringF('samlInterstitialMessage', this.domain); |
+ this.showDomainMessages_ = !!this.domain.length; |
+ }, |
+ onSamlPageNextClicked_: function() { |
+ this.fire('samlPageNextClicked'); |
+ }, |
+ onSamlPageChangeAccountClicked_: function() { |
+ this.fire('samlPageChangeAccountClicked'); |
+ }, |
+}); |