|  | @@ -4,6 +4,7 @@
 | 
											
												
													
														|  |  <link rel="import" href="../../bower_components/neon-animation/animations/fade-out-animation.html">
 |  |  <link rel="import" href="../../bower_components/neon-animation/animations/fade-out-animation.html">
 | 
											
												
													
														|  |  <link rel="import" href="../../bower_components/iron-pages/iron-pages.html">
 |  |  <link rel="import" href="../../bower_components/iron-pages/iron-pages.html">
 | 
											
												
													
														|  |  <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html">
 |  |  <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html">
 | 
											
												
													
														|  | 
 |  | +<link rel="import" href="../sound-notification/sound-notification-behavior.html">
 | 
											
												
													
														|  |  <dom-module id="file-receiver">
 |  |  <dom-module id="file-receiver">
 | 
											
												
													
														|  |      <template>
 |  |      <template>
 | 
											
												
													
														|  |          <style>
 |  |          <style>
 | 
											
										
											
												
													
														|  | @@ -13,8 +14,9 @@
 | 
											
												
													
														|  |          
 |  |          
 | 
											
												
													
														|  |          #dialog,
 |  |          #dialog,
 | 
											
												
													
														|  |          #download {
 |  |          #download {
 | 
											
												
													
														|  | -            width: 300px;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            width: 324px;
 | 
											
												
													
														|  |              z-index: 101;
 |  |              z-index: 101;
 | 
											
												
													
														|  | 
 |  | +            margin: 16px;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          
 |  |          
 | 
											
												
													
														|  |          .filename {
 |  |          .filename {
 | 
											
										
											
												
													
														|  | @@ -46,11 +48,13 @@
 | 
											
												
													
														|  |      (function() {
 |  |      (function() {
 | 
											
												
													
														|  |          Polymer({
 |  |          Polymer({
 | 
											
												
													
														|  |              is: 'file-receiver',
 |  |              is: 'file-receiver',
 | 
											
												
													
														|  | 
 |  | +            behaviors: [Chat.SoundNotificationBehavior],
 | 
											
												
													
														|  |              attached: function() {
 |  |              attached: function() {
 | 
											
												
													
														|  |                  this.async(function() {
 |  |                  this.async(function() {
 | 
											
												
													
														|  |                      app.conn.addEventListener('file-offer', function(e) {
 |  |                      app.conn.addEventListener('file-offer', function(e) {
 | 
											
												
													
														|  |                          this.file = e.detail;
 |  |                          this.file = e.detail;
 | 
											
												
													
														|  |                          this.$.dialog.open();
 |  |                          this.$.dialog.open();
 | 
											
												
													
														|  | 
 |  | +                        this.playSound();
 | 
											
												
													
														|  |                      }.bind(this), false);
 |  |                      }.bind(this), false);
 | 
											
												
													
														|  |                      app.conn.addEventListener('file-received', function(e) {
 |  |                      app.conn.addEventListener('file-received', function(e) {
 | 
											
												
													
														|  |                          this._fileReceived(e.detail);
 |  |                          this._fileReceived(e.detail);
 |