author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 07 Jun 2011 18:31:33 +0000 | |
changeset 6 | 14d6a7489a64 |
parent 5 | fd7b79a506cf |
child 7 | 765e41c1aa8c |
permissions | -rw-r--r-- |
2 | 1 |
"{ Package: 'stx:libwebkit' }" |
2 |
||
3 |
Object subclass:#WebKitRenderer |
|
4 | 4 |
instanceVariableNames:'view pid socket channel' |
2 | 5 |
classVariableNames:'' |
6 |
poolDictionaries:'' |
|
7 |
category:'Views-WebKit' |
|
8 |
! |
|
9 |
||
4 | 10 |
PeekableStream subclass:#Channel |
11 |
instanceVariableNames:'socket' |
|
12 |
classVariableNames:'' |
|
13 |
poolDictionaries:'' |
|
14 |
privateIn:WebKitRenderer |
|
15 |
! |
|
16 |
||
2 | 17 |
|
18 |
!WebKitRenderer class methodsFor:'instance creation'! |
|
19 |
||
20 |
for: aWebKitView |
|
21 |
||
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
22 |
^self new initializeForView: aWebKitView |
2 | 23 |
|
24 |
"Created: / 02-06-2011 / 23:38:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
25 |
"Modified: / 06-06-2011 / 10:38:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2 | 26 |
! ! |
27 |
||
4 | 28 |
!WebKitRenderer methodsFor:'commands'! |
29 |
||
30 |
setVariable: name to: value |
|
31 |
||
32 |
channel ifNil:[^self]. |
|
33 |
||
34 |
channel |
|
35 |
nextPutAll: #set; |
|
36 |
space; |
|
37 |
nextPutAll: name; |
|
38 |
nextPut:$=; |
|
39 |
nextPutAll: value printString; |
|
40 |
cr |
|
41 |
||
42 |
"Created: / 07-06-2011 / 10:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
43 |
! ! |
|
44 |
||
45 |
!WebKitRenderer methodsFor:'event handling'! |
|
46 |
||
47 |
LOAD_COMMIT: event |
|
48 |
||
6 | 49 |
view url value ~= event second ifTrue: |
50 |
[view url value: event second]. |
|
4 | 51 |
|
52 |
"Created: / 07-06-2011 / 11:36:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
6 | 53 |
"Modified: / 07-06-2011 / 19:29:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 54 |
! ! |
55 |
||
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
56 |
!WebKitRenderer methodsFor:'event loop'! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
57 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
58 |
dispatchEvent |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
59 |
|
4 | 60 |
| ev sym | |
61 |
ev := channel nextEvent. |
|
62 |
||
63 |
(self respondsTo: (sym := (ev first , ':') asSymbol)) |
|
64 |
ifTrue:[self perform: sym with: ev] |
|
65 |
ifFalse:[Transcript showCR: 'UNKNOWN EVENT: ', ev asArray printString]. |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
66 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
67 |
"Created: / 06-06-2011 / 18:13:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 68 |
"Modified: / 07-06-2011 / 11:35:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
69 |
! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
70 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
71 |
eventLoop |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
72 |
|
4 | 73 |
[ channel atEnd ] whileFalse: [ |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
74 |
self dispatchEvent |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
75 |
] |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
76 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
77 |
"Created: / 06-06-2011 / 18:00:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 78 |
"Modified: / 07-06-2011 / 10:52:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
79 |
! ! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
80 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
81 |
!WebKitRenderer methodsFor:'initialization & release'! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
82 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
83 |
close |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
84 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
85 |
"Created: / 06-06-2011 / 18:38:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 86 |
"Modified: / 07-06-2011 / 10:32:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
87 |
! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
88 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
89 |
init |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
90 |
|
4 | 91 |
self |
92 |
setVariable: #forward_keys to: 1; |
|
93 |
setVariable: #show_status to: 0; |
|
94 |
setVariable: #scrollbars_visible to: 1; |
|
95 |
setVariable: #url to: view url value; |
|
96 |
||
97 |
yourself |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
98 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
99 |
"Created: / 06-06-2011 / 18:00:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 100 |
"Modified: / 07-06-2011 / 10:26:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
101 |
! |
2 | 102 |
|
103 |
initializeForView: aWebKitView |
|
104 |
||
105 |
view := aWebKitView. |
|
106 |
||
107 |
"Created: / 02-06-2011 / 23:38:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
108 |
! ! |
|
109 |
||
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
110 |
!WebKitRenderer methodsFor:'private'! |
2 | 111 |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
112 |
startEventLoop |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
113 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
114 |
[ |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
115 |
self waitFor; init; eventLoop; close |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
116 |
] fork |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
117 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
118 |
"Created: / 06-06-2011 / 17:57:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
119 |
! |
2 | 120 |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
121 |
waitFor |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
122 |
|
4 | 123 |
socket listenFor: 1. |
124 |
channel := Channel on: socket accept. |
|
125 |
socket port asFilename remove. |
|
126 |
socket close. |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
127 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
128 |
"Created: / 06-06-2011 / 18:00:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 129 |
"Modified: / 07-06-2011 / 10:49:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
130 |
! ! |
2 | 131 |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
132 |
!WebKitRenderer methodsFor:'spawn / terminate'! |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
133 |
|
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
134 |
spawn |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
135 |
|path uzbl args| |
2 | 136 |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
137 |
path := Filename newTemporary. |
4 | 138 |
socket := Socket newUNIXserverAt:path pathName. |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
139 |
uzbl := '/home/jv/work/uzbl/uzbl-core'. |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
140 |
args := (Array |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
141 |
with:'/home/jv/work/uzbl/uzbl-core' |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
142 |
with:'-s' |
4 | 143 |
with:view rendererView embeddingWindowId printString |
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
144 |
with:'--connect-socket=' , path pathName). |
4 | 145 |
|
146 |
self startEventLoop. |
|
147 |
||
148 |
||
149 |
pid := OperatingSystem |
|
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
150 |
exec: uzbl |
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
151 |
withArguments: args |
4 | 152 |
fork: true. |
2 | 153 |
|
154 |
"Created: / 02-06-2011 / 23:40:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4 | 155 |
"Modified: / 07-06-2011 / 10:32:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2 | 156 |
! |
157 |
||
3
32456ba40192
Starts uzbl process and connects to its control socket
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
158 |
terminate |
2 | 159 |
"Created: / 02-06-2011 / 23:40:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
160 |
! ! |
|
161 |
||
4 | 162 |
!WebKitRenderer::Channel class methodsFor:'instance creation'! |
163 |
||
164 |
on: aReadStream |
|
165 |
||
166 |
^self basicNew initializeOn: aReadStream |
|
167 |
||
168 |
"Created: / 07-06-2011 / 10:44:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
169 |
! ! |
|
170 |
||
171 |
!WebKitRenderer::Channel methodsFor:'accessing'! |
|
172 |
||
173 |
contents |
|
174 |
"return the entire contents of the stream. |
|
175 |
For a readStream, that is the rest (i.e. upToEnd), |
|
176 |
for a writeStream, that is the collected data. As we do not know here, |
|
177 |
what we are, this is the responsibility of a subclass..." |
|
178 |
||
179 |
^ self shouldNotImplement |
|
180 |
||
181 |
"Modified: / 07-06-2011 / 10:46:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
182 |
! ! |
|
183 |
||
184 |
!WebKitRenderer::Channel methodsFor:'initialization'! |
|
185 |
||
186 |
initializeOn: aReadStream |
|
187 |
||
188 |
socket := aReadStream |
|
189 |
||
190 |
"Created: / 07-06-2011 / 10:45:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
191 |
! ! |
|
192 |
||
193 |
!WebKitRenderer::Channel methodsFor:'queries'! |
|
194 |
||
195 |
isReadable |
|
196 |
"return true, if reading is supported by the recevier. |
|
197 |
This has to be redefined in concrete subclasses." |
|
198 |
||
199 |
^ socket isReadable |
|
200 |
||
201 |
"Modified: / 07-06-2011 / 10:46:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
202 |
! |
|
203 |
||
204 |
isWritable |
|
205 |
"return true, if writing is supported by the recevier. |
|
206 |
This has to be redefined in concrete subclasses." |
|
207 |
||
208 |
^ socket isWritable |
|
209 |
||
210 |
"Modified: / 07-06-2011 / 10:46:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
211 |
! ! |
|
212 |
||
213 |
!WebKitRenderer::Channel methodsFor:'reading'! |
|
214 |
||
215 |
expect: aString |
|
216 |
||
217 |
| s | |
|
218 |
||
219 |
(s := self next: aString size) ~= aString |
|
220 |
ifTrue:[self error: 'Unexpect data in rendered channel']. |
|
221 |
||
222 |
"Created: / 07-06-2011 / 10:55:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
223 |
! |
|
224 |
||
225 |
next |
|
226 |
"return the next element of the stream |
|
227 |
- we do not know here how to do it, it must be redefined in subclass" |
|
228 |
||
229 |
^ socket next |
|
230 |
||
231 |
"Modified: / 07-06-2011 / 10:46:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
232 |
! |
|
233 |
||
234 |
next: n |
|
235 |
||
236 |
^ socket next: n |
|
237 |
||
238 |
"Created: / 07-06-2011 / 11:01:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
239 |
! |
|
240 |
||
241 |
nextEvent |
|
242 |
||
5 | 243 |
| ev | |
4 | 244 |
|
245 |
ev := OrderedCollection new: 4. |
|
246 |
||
247 |
self upTo:$E. |
|
248 |
self expect: 'VENT ['. |
|
249 |
self skipFor:$]. |
|
250 |
||
251 |
ev add: (self upTo: Character space). |
|
6 | 252 |
|
5 | 253 |
[ self nextEventArgumentIn: ev ] whileTrue. |
4 | 254 |
|
255 |
^ev asArray |
|
256 |
||
5 | 257 |
" |
258 |
(WebKitRenderer::Channel on: 'EVENT [1234] LOAD_COMMIT ''http://www.smalltalk-x.de''' readStream) |
|
259 |
nextEvent. |
|
260 |
||
261 |
(WebKitRenderer::Channel on: 'EVENT [1234] VARIABLE_SET name str ''xxx''' readStream) |
|
262 |
nextEvent. |
|
263 |
||
264 |
(WebKitRenderer::Channel on: 'EVENT [1234] VARIABLE_SET name int 12' readStream) |
|
265 |
nextEvent. |
|
266 |
||
267 |
(WebKitRenderer::Channel on: 'EVENT [1234] VARIABLE_SET name float 1.2' readStream) |
|
268 |
nextEvent. |
|
269 |
||
270 |
||
271 |
||
272 |
" |
|
273 |
||
4 | 274 |
"Created: / 07-06-2011 / 10:52:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6 | 275 |
"Modified: / 07-06-2011 / 19:26:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5 | 276 |
! |
277 |
||
278 |
nextEventArgumentIn: event |
|
279 |
||
280 |
| s c conv | |
|
281 |
s := String new writeStream. |
|
282 |
[ socket atEnd not and:[(c := socket next) ~~ Character space and:[ c ~~ Character cr ] ] ] |
|
283 |
whileTrue: [ |
|
284 |
conv == nil ifTrue: [ |
|
285 |
c == $' ifTrue:[conv := #asString. c := socket next.] ifFalse:[ |
|
286 |
c isDigit ifTrue: [conv := #asNumber] ifFalse:[ |
|
287 |
conv := #asSymbol]] |
|
288 |
]. |
|
6 | 289 |
(conv == #asNumber and:[c isDigit not and:[c ~~ $.]]) ifTrue: |
290 |
[conv := #asSymbol]. |
|
5 | 291 |
s nextPut: c. |
292 |
]. |
|
293 |
conv ifNotNil:[ |
|
6 | 294 |
conv = #asString ifTrue:[s skip: -1]. |
5 | 295 |
event add: (s contents perform: conv). |
296 |
]. |
|
297 |
||
298 |
^c == Character space. |
|
299 |
||
300 |
"Created: / 07-06-2011 / 19:01:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4 | 301 |
! |
302 |
||
303 |
peek |
|
304 |
"return the next element of the stream without advancing (i.e. |
|
305 |
the following send of next will return this element again.) |
|
306 |
- we do not know here how to do it, it must be redefined in subclass" |
|
307 |
||
308 |
^ self shouldImplement |
|
309 |
! |
|
310 |
||
311 |
skipFor: obj |
|
312 |
^ socket skipFor: obj |
|
313 |
||
314 |
"Created: / 07-06-2011 / 11:03:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
315 |
! |
|
316 |
||
317 |
upTo: obj |
|
318 |
^ socket upTo: obj |
|
319 |
||
320 |
"Created: / 07-06-2011 / 11:02:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
321 |
! ! |
|
322 |
||
323 |
!WebKitRenderer::Channel methodsFor:'testing'! |
|
324 |
||
325 |
atEnd |
|
326 |
"return true if the end of the stream has been reached; |
|
327 |
- we do not know here how to do it, it must be redefined in subclass" |
|
328 |
||
329 |
^ socket atEnd |
|
330 |
||
331 |
"Modified: / 07-06-2011 / 10:46:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
332 |
! |
|
333 |
||
334 |
isEmpty |
|
335 |
"return true, if the contents of the stream is empty" |
|
336 |
||
337 |
^ socket isEmpty |
|
338 |
||
339 |
"Modified: / 07-06-2011 / 10:46:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
340 |
! ! |
|
341 |
||
342 |
!WebKitRenderer::Channel methodsFor:'writing'! |
|
343 |
||
344 |
cr |
|
345 |
||
346 |
^ socket cr |
|
347 |
||
348 |
"Created: / 07-06-2011 / 10:51:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
349 |
! |
|
350 |
||
351 |
nextPut:anObject |
|
352 |
"put the argument, anObject onto the receiver |
|
353 |
- we do not know here how to do it, it must be redefined in subclass" |
|
354 |
||
355 |
^ socket nextPut:anObject |
|
356 |
||
357 |
"Modified: / 07-06-2011 / 10:50:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
358 |
! |
|
359 |
||
360 |
nextPutAll:anObject |
|
361 |
"put the argument, anObject onto the receiver |
|
362 |
- we do not know here how to do it, it must be redefined in subclass" |
|
363 |
||
364 |
^ socket nextPutAll:anObject |
|
365 |
||
366 |
"Created: / 07-06-2011 / 10:51:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
367 |
! |
|
368 |
||
369 |
space |
|
370 |
||
371 |
^ socket space |
|
372 |
||
373 |
"Created: / 07-06-2011 / 10:51:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
374 |
! ! |
|
375 |
||
2 | 376 |
!WebKitRenderer class methodsFor:'documentation'! |
377 |
||
378 |
version_SVN |
|
379 |
^ '$Id$' |
|
380 |
! ! |