forked from ShiftSpace/shiftspace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes.txt
66 lines (52 loc) · 1.45 KB
/
notes.txt
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
Proxy Ideas
================================================================================
We could provide a Space proxy object. Would also need to provide a class
that can load spaces into the Garden.
ShiftSpace -> SpaceProxy
setIsVisible
showInterface
hideInterface
onShiftSave
swap
deleteShift
onShiftDelete
editShift
onShiftEdit
blurShift
onShiftBlur
orderFront
createShift
attributes
getShift
focusShift
onShiftFocus
Space -> ShiftSpaceProxy
SSInitShift
SSLoadFile (move)
SSSetValue
SSGetValue
SSIsNewShift
ShiftSpace.User.setPreference
ShiftSpace.User.getPreference
ShiftSpace.User.getUserName (security considerations)
ShiftSpace.User.getId (security considerations)
Shift -> ShiftSpaceProxy
SSIsNewShift
SSUserCanEditShift
SSGetAuthorForShift (security considerations)
SSGetAuthorNameForShift (security consideratios)
Spaces would be proxies. When calling the methods they would call into the
unsafe window with post messgae. On the other side an receiving proxy
object listens forwarding the messages to the object.
ShiftSpace -> send proxy -> receive proxy -> Space
Autogeneration / Bridging
================================================================================
Can we autogenerate the proxies on both sides. If this was Lisp it would be
considerably easier.
Bridge file. Method name and signature.
{
class: 'Space',
methods: [
{name: 'createShift', arglist: ['newShift']}
]
}