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

Side by Side Diff: remoting/client/appengine/hostlist.html

Issue 7033042: Update the appengine code to use OAuth2 and break the gdata dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixed. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <html> 7 <html>
8 <head> 8 <head>
9 <script type="text/javascript" src="static_files/base.js"></script> 9 <script type="text/javascript" src="static_files/base.js"></script>
10 <script type="text/javascript" src="static_files/client.js"></script> 10 <script type="text/javascript" src="static_files/client.js"></script>
11 <link rel="stylesheet" type="text/css" href="static_files/main.css" /> 11 <link rel="stylesheet" type="text/css" href="static_files/main.css" />
12 <title>Remote Access Host List</title> 12 <title>Remote Access Host List</title>
13 </head> 13 </head>
14 <body onload="init();"> 14 <body onload="init();">
15 <div class="header"> 15 <div class="header">
16 </div> 16 </div>
17 <div id="main-content"> 17 <div id="main-content">
18 <div id="navbar-container"> 18 <div id="navbar-container">
19 <h1 id="settings-title">Chromoting</h1> 19 <h1 id="settings-title">Chromoting</h1>
20 <ul id="navbar"> 20 <ul id="navbar">
21 </ul> 21 </ul>
22 </div> 22 </div>
23 <div id="mainview"> 23 <div id="mainview">
24 <div id="mainview-content"> 24 <div id="mainview-content">
25 <div class="page"> 25 <div class="page">
26 <section> 26 <section>
27 <h3>Http Xmpp Proxy</h3>
28 <input type="text" id="http_xmpp_proxy"
29 value="https://chromoting-httpxmpp-dev.corp.google.com"
Jamie 2011/05/20 16:46:47 This has always been needed, hasn't it? But previo
awong 2011/05/20 20:37:38 We decided to publish it, so now I'm hardcoding it
30 size="50" />
31 </section>
32 <section>
27 <h3>Host List</h3> 33 <h3>Host List</h3>
28 <div class="hostlist"> 34 <div class="hostlist">
29 <list id="hostlist-div"> 35 <list id="hostlist-div">
30 <p class='message'>Initializing...</p> 36 <p class='message'>Initializing...</p>
31 </list> 37 </list>
32 <div id="host-options"> 38 <div id="host-options">
33 <button class="float-left" onclick="populateHostList();"> 39 <button class="float-left" onclick="populateHostList();">
34 Reload Host List 40 Reload Host List
35 </button> 41 </button>
36 <span class="float-right"> 42 <span class="float-right">
37 <input type=checkbox id="show_offline" 43 <input type=checkbox id="show_offline"
38 onClick="updateShowOfflineHosts(this);" /> 44 onClick="updateShowOfflineHosts(this);" />
39 Show offline hosts 45 Show offline hosts
40 </span> 46 </span>
41 </div> 47 </div>
42 </div> 48 </div>
43 </section> 49 </section>
44 <section> 50 <section>
45 <h3>Chromoting Token</h3> 51 <h3>OAuth2 Token</h3>
46 <div> 52 <div>
47 {% ifnotequal chromoting_token None %} 53 {% if has_oauth2_tokens %}
48 <div>Token Authenticated</div> 54 <div>Token Authenticated</div>
49 <button id="subitem" 55 <button id="subitem"
50 onclick="window.location='/auth/clear_chromoting_token'"> 56 onclick="window.location='/auth/clear_oauth2_token'">
51 Clear Token 57 Clear Token
52 </button> 58 </button>
53 {% else %} 59 {% else %}
54 <div class="error-msg">Token Not Authenticated</div> 60 <div class="error-msg">Token Not Authenticated</div>
55 <button id="subitem" 61 <button id="subitem"
56 onclick="window.location='/auth/chromoting_auth'"> 62 onclick="authorizeOAuth2();">
57 Authenticate Token 63 Authenticate Token
58 </button> 64 </button>
59 {% endifnotequal %} 65 {% endif %}
60 </div> 66 </div>
61 </section> 67 </section>
62 <section> 68 <section>
63 <h3>Xmpp Token</h3> 69 <h3>Xmpp Token</h3>
64 <div> 70 <div>
65 {% ifnotequal xmpp_token None %} 71 {% ifnotequal xmpp_token None %}
66 <div>Token Authenticated</div> 72 <div>Token Authenticated</div>
67 <button id="subitem" 73 <button id="subitem"
68 onclick="window.location='/auth/clear_xmpp_token'"> 74 onclick="window.location='/auth/clear_xmpp_token'">
69 Clear Token 75 Clear Token
70 </button> 76 </button>
71 {% else %} 77 {% else %}
72 <div class="error-msg">Token Not Authenticated</div> 78 <div class="error-msg">Token Not Authenticated</div>
73 <button id="subitem" 79 <button id="subitem"
74 onclick="window.location='/auth/xmpp_auth'"> 80 onclick="window.location='/auth/xmpp_auth'">
75 Authenticate Token 81 Authenticate Token
76 </button> 82 </button>
77 {% endifnotequal %} 83 {% endifnotequal %}
78 </div> 84 </div>
79 </section> 85 </section>
80 </div> 86 </div>
81 </div> 87 </div>
82 </div> 88 </div>
83 </div> 89 </div>
84 </body> 90 </body>
85 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698