Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/browser/resources/chat_manager/central_roster.html

Issue 3069006: Fixing CSS and switching over to DOM properties for central_roster.html. (Closed)
Patch Set: Fix Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 4
5 Copyright (c) 2010 The Chromium Authors. All rights reserved. 5 Copyright (c) 2010 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 Central roster: hosting all Google Talk chats in ChromeOS. 9 Central roster: hosting all Google Talk chats in ChromeOS.
10 10
11 --> 11 -->
12 <head> 12 <head>
13 <style> 13 <style>
14 .talk_roster { 14 .talk_roster {
15 position: fixed; 15 position: fixed;
16 left: 0px; 16 left: 0px;
17 top: 0px; 17 top: 0px;
18 } 18 }
19 .talk_iframe { 19 .talk_iframe {
20 width: 100%; 20 width: 100%;
21 height: 100%; 21 height: 100%;
22 border: none; 22 border: none;
23 overflow-x: hidden; 23 overflow: hidden;
24 overflow-y: hidden;
25 } 24 }
26 body { 25 body {
27 text-align: center; 26 text-align: center;
28 } 27 }
29 </style> 28 </style>
30 <script> 29 <script>
31 var MIN_RETRY_MILLISECONDS = 15 * 1000; 30 var MIN_RETRY_MILLISECONDS = 15 * 1000;
32 var MAX_RETRY_MILLISECONDS = 4 * 60 * 1000; 31 var MAX_RETRY_MILLISECONDS = 4 * 60 * 1000;
33 var retryStartTime = 0; 32 var retryStartTime = 0;
34 var retryTime; 33 var retryTime;
(...skipping 16 matching lines...) Expand all
51 } 50 }
52 var notifierScriptUrl = 51 var notifierScriptUrl =
53 args['protocol'] + '://' + args['host'] + 52 args['protocol'] + '://' + args['host'] +
54 '/talkgadget/notifier-js?silent=true&host=' + 53 '/talkgadget/notifier-js?silent=true&host=' +
55 args['protocol'] + '://' + args['host'] + 54 args['protocol'] + '://' + args['host'] +
56 '/talkgadget/notifier-js' + 55 '/talkgadget/notifier-js' +
57 (args['jsmode'] != '' ? ('&jsmode=' + args['jsmode']) : ''); 56 (args['jsmode'] != '' ? ('&jsmode=' + args['jsmode']) : '');
58 57
59 function runGTalkScript() { 58 function runGTalkScript() {
60 var script = document.createElement('script'); 59 var script = document.createElement('script');
61 script.setAttribute('src', notifierScriptUrl); 60 script.src = notifierScriptUrl;
62 script.setAttribute('onload', 'loadGTalk()'); 61 script.onload = loadGTalk;
63 script.setAttribute('onerror', 'loadGTalk()'); 62 script.onerror = loadGTalk;
64 document.body.appendChild(script); 63 document.body.appendChild(script);
65 } 64 }
66 function retryConnection() { 65 function retryConnection() {
67 if (retryTimer) { 66 if (retryTimer) {
68 clearTimeout(retryTimer); 67 clearTimeout(retryTimer);
69 retryTimer = null; 68 retryTimer = null;
70 } 69 }
71 runGTalkScript(); 70 runGTalkScript();
72 } 71 }
73 function retryConnectionCountdown() { 72 function retryConnectionCountdown() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 </script> 117 </script>
119 </head> 118 </head>
120 <body onload='runGTalkScript()'> 119 <body onload='runGTalkScript()'>
121 <div id='retryInfo' style='display:none'> 120 <div id='retryInfo' style='display:none'>
122 <p>Could not connect to Google Talk</p> 121 <p>Could not connect to Google Talk</p>
123 <p id='retryStatus'></p> 122 <p id='retryStatus'></p>
124 <input type='button' value='Retry Now' onclick='retryConnection()'/> 123 <input type='button' value='Retry Now' onclick='retryConnection()'/>
125 </div> 124 </div>
126 </body> 125 </body>
127 </html> 126 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698