1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 : #ifndef PCompositor_h
7 : #define PCompositor_h
8 :
9 : #include "mozilla/Attributes.h"
10 : #include "base/basictypes.h"
11 : #include "prtime.h"
12 : #include "nscore.h"
13 : #include "IPCMessageStart.h"
14 : #include "IPC/IPCMessageUtils.h"
15 : #include "nsAutoPtr.h"
16 : #include "nsStringGlue.h"
17 : #include "nsTArray.h"
18 : #include "nsIFile.h"
19 : #include "mozilla/ipc/ProtocolUtils.h"
20 :
21 : //-----------------------------------------------------------------------------
22 : // Code common to PCompositorChild and PCompositorParent
23 : //
24 : namespace mozilla {
25 : namespace layers {
26 : namespace PCompositor {
27 :
28 : enum State {
29 : __Dead,
30 : __Null,
31 : __Error,
32 : __Start = __Null
33 : };
34 :
35 : enum MessageType {
36 : PCompositorStart = PCompositorMsgStart << 16,
37 : PCompositorPreStart = (PCompositorMsgStart << 16) - 1,
38 : Msg_Stop__ID,
39 : Reply_Stop__ID,
40 : Msg_PLayersConstructor__ID,
41 : Reply_PLayersConstructor__ID,
42 : PCompositorEnd
43 : };
44 :
45 : bool
46 : Transition(
47 : State from,
48 : mozilla::ipc::Trigger trigger,
49 : State* next);
50 :
51 : class Msg_Stop :
52 : public IPC::Message
53 0 : {
54 : private:
55 : typedef mozilla::ipc::ActorHandle ActorHandle;
56 : typedef mozilla::ipc::Shmem Shmem;
57 : typedef mozilla::LayersBackend LayersBackend;
58 : typedef mozilla::null_t null_t;
59 :
60 : public:
61 : enum {
62 : ID = Msg_Stop__ID
63 : };
64 0 : Msg_Stop() :
65 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCompositor::Msg_Stop")
66 : {
67 0 : }
68 :
69 : void
70 0 : Log(
71 : const std::string& __pfx,
72 : FILE* __outf) const
73 : {
74 0 : std::string __logmsg;
75 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
76 0 : (__logmsg).append(__pfx);
77 0 : (__logmsg).append("Msg_Stop(");
78 :
79 0 : (__logmsg).append("[TODO])\n");
80 0 : fputs((__logmsg).c_str(), __outf);
81 0 : }
82 : };
83 :
84 : class Reply_Stop :
85 : public IPC::Message
86 0 : {
87 : private:
88 : typedef mozilla::ipc::ActorHandle ActorHandle;
89 : typedef mozilla::ipc::Shmem Shmem;
90 : typedef mozilla::LayersBackend LayersBackend;
91 : typedef mozilla::null_t null_t;
92 :
93 : public:
94 : enum {
95 : ID = Reply_Stop__ID
96 : };
97 0 : Reply_Stop() :
98 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCompositor::Reply_Stop")
99 : {
100 0 : }
101 :
102 : void
103 0 : Log(
104 : const std::string& __pfx,
105 : FILE* __outf) const
106 : {
107 0 : std::string __logmsg;
108 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
109 0 : (__logmsg).append(__pfx);
110 0 : (__logmsg).append("Reply_Stop(");
111 :
112 0 : (__logmsg).append("[TODO])\n");
113 0 : fputs((__logmsg).c_str(), __outf);
114 0 : }
115 : };
116 :
117 : class Msg_PLayersConstructor :
118 : public IPC::Message
119 0 : {
120 : private:
121 : typedef mozilla::ipc::ActorHandle ActorHandle;
122 : typedef mozilla::ipc::Shmem Shmem;
123 : typedef mozilla::LayersBackend LayersBackend;
124 : typedef mozilla::null_t null_t;
125 :
126 : public:
127 : enum {
128 : ID = Msg_PLayersConstructor__ID
129 : };
130 0 : Msg_PLayersConstructor() :
131 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCompositor::Msg_PLayersConstructor")
132 : {
133 0 : }
134 :
135 : void
136 0 : Log(
137 : const std::string& __pfx,
138 : FILE* __outf) const
139 : {
140 0 : std::string __logmsg;
141 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
142 0 : (__logmsg).append(__pfx);
143 0 : (__logmsg).append("Msg_PLayersConstructor(");
144 :
145 0 : (__logmsg).append("[TODO])\n");
146 0 : fputs((__logmsg).c_str(), __outf);
147 0 : }
148 : };
149 :
150 : class Reply_PLayersConstructor :
151 : public IPC::Message
152 0 : {
153 : private:
154 : typedef mozilla::ipc::ActorHandle ActorHandle;
155 : typedef mozilla::ipc::Shmem Shmem;
156 : typedef mozilla::LayersBackend LayersBackend;
157 : typedef mozilla::null_t null_t;
158 :
159 : public:
160 : enum {
161 : ID = Reply_PLayersConstructor__ID
162 : };
163 0 : Reply_PLayersConstructor() :
164 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCompositor::Reply_PLayersConstructor")
165 : {
166 0 : }
167 :
168 : void
169 0 : Log(
170 : const std::string& __pfx,
171 : FILE* __outf) const
172 : {
173 0 : std::string __logmsg;
174 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
175 0 : (__logmsg).append(__pfx);
176 0 : (__logmsg).append("Reply_PLayersConstructor(");
177 :
178 0 : (__logmsg).append("[TODO])\n");
179 0 : fputs((__logmsg).c_str(), __outf);
180 0 : }
181 : };
182 :
183 :
184 :
185 : } // namespace PCompositor
186 : } // namespace layers
187 : } // namespace mozilla
188 :
189 : #endif // ifndef PCompositor_h
|