blob: b87e2c171405ae62a1d8d3a700c076cf6cba83c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
<!doctype html>
<!--
Copyright (c) 2011 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.
-->
<html>
<head>
<meta charset="utf-8" />
<link href="http://fonts.googleapis.com/css?family=Droid+Sans&v1"
rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="chromoting128.png" />
<link rel="stylesheet" href="debug_log.css" />
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="choice.css" />
<link rel="stylesheet" href="toolbar.css" />
<script src="client_session.js"></script>
<script src="debug_log.js"></script>
<script src="l10n.js"></script>
<script src="oauth2.js"></script>
<script src="plugin_settings.js"></script>
<script src="remoting.js"></script>
<script src="xhr.js"></script>
<title i18n-content="PRODUCT_NAME"></title>
</head>
<body onBeforeUnload="return remoting.promptClose();"
onLoad="remoting.init();"
onUnload="remoting.disconnect();">
<!-- loading-mode is initially visible, but becomes hidden as soon as an
AppMode is selected by remoting.init. All other divs are initially
hidden, but are shown appropriately when the mode changes. -->
<!-- TODO(jamiewalch): This string is not localized because by the time we
get around to running localize(), it's hidden anyway. -->
<section id="loading-mode" data-ui-mode="">
<em>Loading…</em>
</section> <!-- loading-mode -->
<div class="top-primary"
data-ui-mode="client.unconnected host.unshared"
hidden>
<span id="email-status">
<span id="current-email"></span>
(<a href="#" onclick="remoting.clearOAuth2();"
i18n-content="SIGN_OUT_BUTTON"></a>)
</span>
</div>
<div class="top-secondary" data-ui-mode="auth client host">
<a href="https://sites.google.com/a/google.com/chromoting/welcome/faq"
target="_blank" i18n-content="HELP"></a>
</div>
<div id="session-toolbar"
data-ui-mode="in-session"
class="toolbar-container"
hidden>
<div class="toolbar-border">
<span id="session-status-message" i18n-content="LABEL_CONNECTED"></span>
<strong id="connected-to"></strong>
<button type="button" onclick="remoting.disconnect();"
i18n-content="DISCONNECT_BUTTON"></button>
<span class="end-align">
<button id="toggle-scaling"
onClick="remoting.toggleScaleToFit(this);">
<img src="scale-to-fit.png">
</button>
</span>
</div>
<div class="toolbar-stub">
<img src="toolbar-stub.png">
</div>
</div> <!-- session-toolbar -->
<div id="main" data-ui-mode="auth host client" hidden>
<header class="choice-header">
<img id="icon" src="chromoting128.png">
<h1 class="icon-label">
<span i18n-content="PRODUCT_NAME">
</span> › <span i18n-content="MODE_AUTHORIZE"
data-ui-mode="auth">
</span><span i18n-content="MODE_CONNECT" data-ui-mode="client">
</span><span i18n-content="MODE_SHARE" data-ui-mode="host">
</span>
</h1>
</header>
<img id="divider-top" src="dividertop.png">
<div id="auth-panel" data-ui-mode="auth">
<div class="description" i18n-content="DESCRIPTION_AUTHORIZE"></div>
<div class="centered-button">
<button id="auth-button" class="big-button"
type="button" onclick="remoting.oauth2.doAuthRedirect();"
i18n-content="CONTINUE_BUTTON"></button>
</div>
</div> <!-- auth-panel -->
<div id="host-panel" data-ui-mode="host">
<div data-ui-mode="host.unshared">
<div class="description" i18n-content="DESCRIPTION_SHARE"></div>
<div class="centered-button">
<button id="share-button" class="big-button"
type="button" onclick="remoting.tryShare();"
i18n-content="SHARE_BUTTON"></button>
</div>
</div> <!-- host.unshared -->
<div data-ui-mode="host.waiting-for-code" class="message"
i18n-content="MESSAGE_GENERATING">
</div> <!-- host.waiting-for-code -->
<div data-ui-mode="host.waiting-for-connection">
<div class="description" i18n-content="INSTRUCTIONS_SHARE_ABOVE"></div>
<div id="access-code-display" dir="ltr"></div>
<div id="access-code-countdown-container">
<div id="access-code-countdown" class="expiring" hidden>
<span id="seconds-remaining" i18n-content="ACCESS_CODE_TIMER"></span>
</div>
</div>
<div class="description" i18n-content="INSTRUCTIONS_SHARE_BELOW"></div>
</div> <!-- host.waiting-for-connection -->
<div data-ui-mode="host.shared">
<div id="host-shared-message" class="message"
i18n-content="MESSAGE_SHARED"></div>
<div class="centered-button">
<button type="button" class="big-button"
onclick="remoting.cancelShare();"
i18n-content="STOP_SHARING_BUTTON">
</button>
</div>
</div> <!-- host.shared -->
<div data-ui-mode="host.share-failed" class="message">
<span id="host-plugin-error" class="error-state"></span>
</div> <!-- host.share-failed -->
<div data-ui-mode="host.share-finished" class="message"
i18n-content="MESSAGE_SESSION_FINISHED">
</div> <!-- host.share-finished -->
<div class="centered-button"
data-ui-mode="host.share-failed host.share-finished">
<button type="button" class="big-button"
onclick="remoting.setMode('host.unshared');"
i18n-content="OK">
</button>
</div>
<div id="host-plugin-container"></div>
</div> <!-- host-panel -->
<div id="client-panel" data-ui-mode="client">
<div data-ui-mode="client.unconnected">
<div class="description" i18n-content="DESCRIPTION_CONNECT"></div>
<div id="access-code-entry-row">
<form action="" onsubmit="remoting.tryConnect(); return false;">
<label for="access-code-entry" i18n-content="ACCESS_CODE"></label>
<input id="access-code-entry" type="text"/>
<button id="connect-button" class="big-button"
type="submit" i18n-content="CONNECT_BUTTON"></button>
</form>
</div> <!-- code-entry-row -->
</div> <!-- client.unconnected -->
<!-- TODO(jamiewalch): Implement Cancel, being careful when ignoring
the eventual server response not to ignore responses for any
subsequent requests. This should be unified with the host-side
Cancel button in the footer.
-->
<div data-ui-mode="client.connecting" class="message"
i18n-content="VERIFYING_CODE">
</div> <!-- client.connecting -->
<div data-ui-mode="client.connect-failed"
class="message">
<span id="connect-error-message" class="error-state"></span>
</div> <!-- client.connect-failed -->
<div data-ui-mode="client.session-finished"
class="message" i18n-content="MESSAGE_SESSION_FINISHED">
</div> <!-- client.session-finished -->
<div data-ui-mode="client.connect-failed client.session-finished"
class="centered-button">
<button type="button" class="big-button" i18n-content="OK"
onclick="remoting.setMode(
remoting.AppMode.CLIENT_UNCONNECTED);">
</button>
</div>
</div> <!-- client-panel -->
<img id="divider-bottom" src="dividerbottom.png">
<footer class="choice-footer">
<div id="client-footer-text" data-ui-mode="client.unconnected">
<span i18n-content="FOOTER_CLIENT"
i18n-value-1="<a href='#' onclick='remoting.setAppMode(remoting.AppMode.HOST);'>"
i18n-value-2="</a>"></span>
</div> <!-- client-footer-text -->
<div id="client-footer-text-cros" data-ui-mode="client.unconnected"
i18n-content="FOOTER_CHROME_OS">
</div> <!-- client-footer-text-cros -->
<div id="host-footer-text" data-ui-mode="host.unshared">
<span i18n-content="FOOTER_HOST"
i18n-value-1="<a href='#' onclick='remoting.setAppMode(remoting.AppMode.CLIENT);'>"
i18n-value-2="</a>"></span>
</div> <!-- host-footer-text -->
<div id="waiting-footer"
data-ui-mode="host.waiting-for-connection host.waiting-for-code">
<img src="spinner.gif">
<span class="waiting icon-label" i18n-content="FOOTER_WAITING"></span>
<button id="cancel-button" class="big-button"
onclick="remoting.cancelPendingOperation();"
i18n-content="CANCEL">
</button>
</div> <!-- waiting-footer -->
</footer>
</div> <!-- main -->
<div id="session-mode" data-ui-mode="in-session client" hidden>
</div> <!-- session-mode -->
<section id="debug-log" dir="ltr" hidden>
<div id="statistics">
</div>
<div id="debug-messages">
</div>
</section> <!-- debug-log -->
</body>
</html>
|