1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 : #ifndef PBrowserParent_h
7 : #define PBrowserParent_h
8 :
9 : #include "mozilla/dom/PBrowser.h"
10 : namespace mozilla {
11 : namespace dom {
12 : class PContentParent;
13 : } // namespace dom
14 : } // namespace mozilla
15 :
16 : namespace mozilla {
17 : namespace dom {
18 : class PContentDialogParent;
19 : } // namespace dom
20 : } // namespace mozilla
21 :
22 : namespace mozilla {
23 : namespace ipc {
24 : class PDocumentRendererParent;
25 : } // namespace ipc
26 : } // namespace mozilla
27 :
28 : namespace mozilla {
29 : namespace dom {
30 : class PContentPermissionRequestParent;
31 : } // namespace dom
32 : } // namespace mozilla
33 :
34 : namespace mozilla {
35 : namespace layout {
36 : class PRenderFrameParent;
37 : } // namespace layout
38 : } // namespace mozilla
39 :
40 : namespace mozilla {
41 : namespace docshell {
42 : class POfflineCacheUpdateParent;
43 : } // namespace docshell
44 : } // namespace mozilla
45 :
46 : #ifdef DEBUG
47 : #include "prenv.h"
48 : #endif // DEBUG
49 : #include "base/id_map.h"
50 : #include "mozilla/ipc/RPCChannel.h"
51 :
52 :
53 : namespace mozilla {
54 : namespace dom {
55 : class PContentDialogParent;
56 : } // namespace dom
57 : } // namespace mozilla
58 :
59 :
60 : namespace mozilla {
61 : namespace docshell {
62 : class POfflineCacheUpdateParent;
63 : } // namespace docshell
64 : } // namespace mozilla
65 :
66 :
67 : namespace mozilla {
68 : namespace net {
69 : class PNeckoParent;
70 : } // namespace net
71 : } // namespace mozilla
72 :
73 :
74 : namespace mozilla {
75 : namespace dom {
76 : class PContentParent;
77 : } // namespace dom
78 : } // namespace mozilla
79 :
80 :
81 : namespace mozilla {
82 : namespace dom {
83 : class PContentPermissionRequestParent;
84 : } // namespace dom
85 : } // namespace mozilla
86 :
87 :
88 : namespace mozilla {
89 : namespace ipc {
90 : class PDocumentRendererParent;
91 : } // namespace ipc
92 : } // namespace mozilla
93 :
94 :
95 : namespace mozilla {
96 : namespace layout {
97 : class PRenderFrameParent;
98 : } // namespace layout
99 : } // namespace mozilla
100 :
101 :
102 : namespace mozilla {
103 : namespace hal_sandbox {
104 : class PHalParent;
105 : } // namespace hal_sandbox
106 : } // namespace mozilla
107 :
108 : namespace mozilla {
109 : namespace dom {
110 :
111 :
112 : class /*NS_ABSTRACT_CLASS*/ PBrowserParent :
113 : protected mozilla::ipc::RPCChannel::RPCListener,
114 : protected mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>
115 : {
116 : friend class mozilla::dom::PContentDialogParent;
117 :
118 : friend class mozilla::docshell::POfflineCacheUpdateParent;
119 :
120 : friend class mozilla::net::PNeckoParent;
121 :
122 : friend class mozilla::dom::PContentParent;
123 :
124 : friend class mozilla::dom::PContentPermissionRequestParent;
125 :
126 : friend class mozilla::ipc::PDocumentRendererParent;
127 :
128 : friend class mozilla::layout::PRenderFrameParent;
129 :
130 : friend class mozilla::hal_sandbox::PHalParent;
131 :
132 : protected:
133 : typedef mozilla::ipc::ActorHandle ActorHandle;
134 : typedef mozilla::ipc::Shmem Shmem;
135 : typedef IPC::URI URI;
136 : typedef mozilla::WindowsHandle WindowsHandle;
137 : typedef mozilla::dom::PContentParent PContentParent;
138 : typedef mozilla::dom::PContentDialogParent PContentDialogParent;
139 : typedef mozilla::ipc::PDocumentRendererParent PDocumentRendererParent;
140 : typedef mozilla::dom::PContentPermissionRequestParent PContentPermissionRequestParent;
141 : typedef mozilla::layout::PRenderFrameParent PRenderFrameParent;
142 : typedef mozilla::docshell::POfflineCacheUpdateParent POfflineCacheUpdateParent;
143 : typedef base::ProcessId ProcessId;
144 : typedef mozilla::ipc::ProtocolId ProtocolId;
145 : typedef mozilla::ipc::Transport Transport;
146 : typedef mozilla::ipc::TransportDescriptor TransportDescriptor;
147 :
148 : typedef PBrowser::State State;
149 :
150 : virtual bool
151 : RecvAsyncMessage(
152 : const nsString& aMessage,
153 : const nsString& aJSON) = 0;
154 : virtual bool
155 : RecvMoveFocus(const bool& forward) = 0;
156 : virtual bool
157 : RecvEvent(const RemoteDOMEvent& aEvent) = 0;
158 : virtual bool
159 : AnswerCreateWindow(PBrowserParent** window) = 0;
160 : virtual bool
161 : RecvSyncMessage(
162 : const nsString& aMessage,
163 : const nsString& aJSON,
164 : InfallibleTArray<nsString>* retval) = 0;
165 : virtual bool
166 : RecvNotifyIMEFocus(
167 : const bool& focus,
168 : nsIMEUpdatePreference* preference,
169 : PRUint32* seqno) = 0;
170 : virtual bool
171 : RecvNotifyIMETextChange(
172 : const PRUint32& offset,
173 : const PRUint32& end,
174 : const PRUint32& newEnd) = 0;
175 : virtual bool
176 : RecvNotifyIMESelection(
177 : const PRUint32& seqno,
178 : const PRUint32& anchor,
179 : const PRUint32& focus) = 0;
180 : virtual bool
181 : RecvNotifyIMETextHint(const nsString& text) = 0;
182 : virtual bool
183 : RecvEndIMEComposition(
184 : const bool& cancel,
185 : nsString* composition) = 0;
186 : virtual bool
187 : RecvGetInputContext(
188 : PRInt32* IMEEnabled,
189 : PRInt32* IMEOpen) = 0;
190 : virtual bool
191 : RecvSetInputContext(
192 : const PRInt32& IMEEnabled,
193 : const PRInt32& IMEOpen,
194 : const nsString& type,
195 : const nsString& actionHint,
196 : const PRInt32& cause,
197 : const PRInt32& focusChange) = 0;
198 : virtual bool
199 : RecvGetDPI(float* value) = 0;
200 : virtual bool
201 : RecvGetWidgetNativeData(WindowsHandle* value) = 0;
202 : virtual bool
203 : RecvSetCursor(const PRUint32& value) = 0;
204 : virtual bool
205 : RecvSetBackgroundColor(const nscolor& color) = 0;
206 : virtual bool
207 : RecvPContentPermissionRequestConstructor(
208 : PContentPermissionRequestParent* actor,
209 : const nsCString& aType,
210 : const URI& uri);
211 : virtual bool
212 : RecvPContentDialogConstructor(
213 : PContentDialogParent* actor,
214 : const PRUint32& aType,
215 : const nsCString& aName,
216 : const nsCString& aFeatures,
217 : const InfallibleTArray<PRInt32>& aIntParams,
218 : const InfallibleTArray<nsString>& aStringParams);
219 : virtual bool
220 : RecvPRenderFrameConstructor(PRenderFrameParent* actor);
221 : virtual bool
222 : RecvPOfflineCacheUpdateConstructor(
223 : POfflineCacheUpdateParent* actor,
224 : const URI& manifestURI,
225 : const URI& documentURI,
226 : const nsCString& clientID,
227 : const bool& stickDocument);
228 : virtual bool
229 : Recv__delete__();
230 : virtual PContentPermissionRequestParent*
231 : AllocPContentPermissionRequest(
232 : const nsCString& aType,
233 : const URI& uri) = 0;
234 : virtual bool
235 : DeallocPContentPermissionRequest(PContentPermissionRequestParent* actor) = 0;
236 : virtual PContentDialogParent*
237 : AllocPContentDialog(
238 : const PRUint32& aType,
239 : const nsCString& aName,
240 : const nsCString& aFeatures,
241 : const InfallibleTArray<PRInt32>& aIntParams,
242 : const InfallibleTArray<nsString>& aStringParams) = 0;
243 : virtual bool
244 : DeallocPContentDialog(PContentDialogParent* actor) = 0;
245 : virtual PRenderFrameParent*
246 : AllocPRenderFrame() = 0;
247 : virtual bool
248 : DeallocPRenderFrame(PRenderFrameParent* actor) = 0;
249 : virtual POfflineCacheUpdateParent*
250 : AllocPOfflineCacheUpdate(
251 : const URI& manifestURI,
252 : const URI& documentURI,
253 : const nsCString& clientID,
254 : const bool& stickDocument) = 0;
255 : virtual bool
256 : DeallocPOfflineCacheUpdate(POfflineCacheUpdateParent* actor) = 0;
257 : virtual PDocumentRendererParent*
258 : AllocPDocumentRenderer(
259 : const nsRect& documentRect,
260 : const gfxMatrix& transform,
261 : const nsString& bgcolor,
262 : const PRUint32& renderFlags,
263 : const bool& flushLayout,
264 : const nsIntSize& renderSize) = 0;
265 : virtual bool
266 : DeallocPDocumentRenderer(PDocumentRendererParent* actor) = 0;
267 :
268 : virtual void
269 : ActorDestroy(ActorDestroyReason why);
270 :
271 : public:
272 : typedef IPC::Message Message;
273 : typedef mozilla::ipc::RPCChannel Channel;
274 : typedef mozilla::ipc::RPCChannel::RPCListener ChannelListener;
275 : typedef base::ProcessHandle ProcessHandle;
276 : typedef mozilla::ipc::AsyncChannel AsyncChannel;
277 : typedef mozilla::ipc::SharedMemory SharedMemory;
278 : typedef mozilla::ipc::Trigger Trigger;
279 :
280 : public:
281 : PBrowserParent();
282 :
283 : virtual ~PBrowserParent();
284 :
285 : PContentParent*
286 : Manager();
287 :
288 : void
289 : ManagedPContentDialogParent(InfallibleTArray<PContentDialogParent*>& aArr) const;
290 : const InfallibleTArray<PContentDialogParent*>&
291 : ManagedPContentDialogParent() const;
292 :
293 : void
294 : ManagedPDocumentRendererParent(InfallibleTArray<PDocumentRendererParent*>& aArr) const;
295 : const InfallibleTArray<PDocumentRendererParent*>&
296 : ManagedPDocumentRendererParent() const;
297 :
298 : void
299 : ManagedPContentPermissionRequestParent(InfallibleTArray<PContentPermissionRequestParent*>& aArr) const;
300 : const InfallibleTArray<PContentPermissionRequestParent*>&
301 : ManagedPContentPermissionRequestParent() const;
302 :
303 : void
304 : ManagedPRenderFrameParent(InfallibleTArray<PRenderFrameParent*>& aArr) const;
305 : const InfallibleTArray<PRenderFrameParent*>&
306 : ManagedPRenderFrameParent() const;
307 :
308 : void
309 : ManagedPOfflineCacheUpdateParent(InfallibleTArray<POfflineCacheUpdateParent*>& aArr) const;
310 : const InfallibleTArray<POfflineCacheUpdateParent*>&
311 : ManagedPOfflineCacheUpdateParent() const;
312 :
313 : PBrowser::State
314 : state();
315 :
316 : bool
317 : SendAsyncMessage(
318 : const nsString& aMessage,
319 : const nsString& aJSON) NS_WARN_UNUSED_RESULT;
320 :
321 : bool
322 : SendShow(const nsIntSize& size) NS_WARN_UNUSED_RESULT;
323 :
324 : bool
325 : SendLoadURL(const nsCString& uri) NS_WARN_UNUSED_RESULT;
326 :
327 : bool
328 : SendUpdateDimensions(
329 : const nsRect& rect,
330 : const nsIntSize& size) NS_WARN_UNUSED_RESULT;
331 :
332 : bool
333 : SendActivate() NS_WARN_UNUSED_RESULT;
334 :
335 : bool
336 : SendDeactivate() NS_WARN_UNUSED_RESULT;
337 :
338 : bool
339 : SendMouseEvent(
340 : const nsString& aType,
341 : const float& aX,
342 : const float& aY,
343 : const PRInt32& aButton,
344 : const PRInt32& aClickCount,
345 : const PRInt32& aModifiers,
346 : const bool& aIgnoreRootScrollFrame) NS_WARN_UNUSED_RESULT;
347 :
348 : bool
349 : SendRealMouseEvent(const nsMouseEvent& event) NS_WARN_UNUSED_RESULT;
350 :
351 : bool
352 : SendRealKeyEvent(const nsKeyEvent& event) NS_WARN_UNUSED_RESULT;
353 :
354 : bool
355 : SendMouseScrollEvent(const nsMouseScrollEvent& event) NS_WARN_UNUSED_RESULT;
356 :
357 : bool
358 : SendKeyEvent(
359 : const nsString& aType,
360 : const PRInt32& aKeyCode,
361 : const PRInt32& aCharCode,
362 : const PRInt32& aModifiers,
363 : const bool& aPreventDefault) NS_WARN_UNUSED_RESULT;
364 :
365 : bool
366 : SendCompositionEvent(const nsCompositionEvent& event) NS_WARN_UNUSED_RESULT;
367 :
368 : bool
369 : SendTextEvent(const nsTextEvent& event) NS_WARN_UNUSED_RESULT;
370 :
371 : bool
372 : SendSelectionEvent(const nsSelectionEvent& event) NS_WARN_UNUSED_RESULT;
373 :
374 : bool
375 : SendActivateFrameEvent(
376 : const nsString& aType,
377 : const bool& capture) NS_WARN_UNUSED_RESULT;
378 :
379 : bool
380 : SendLoadRemoteScript(const nsString& aURL) NS_WARN_UNUSED_RESULT;
381 :
382 : PDocumentRendererParent*
383 : SendPDocumentRendererConstructor(
384 : const nsRect& documentRect,
385 : const gfxMatrix& transform,
386 : const nsString& bgcolor,
387 : const PRUint32& renderFlags,
388 : const bool& flushLayout,
389 : const nsIntSize& renderSize) NS_WARN_UNUSED_RESULT;
390 :
391 : PDocumentRendererParent*
392 : SendPDocumentRendererConstructor(
393 : PDocumentRendererParent* actor,
394 : const nsRect& documentRect,
395 : const gfxMatrix& transform,
396 : const nsString& bgcolor,
397 : const PRUint32& renderFlags,
398 : const bool& flushLayout,
399 : const nsIntSize& renderSize) NS_WARN_UNUSED_RESULT;
400 :
401 : bool
402 : SendDestroy() NS_WARN_UNUSED_RESULT;
403 :
404 : virtual int32
405 : Register(ChannelListener* aRouted);
406 : virtual int32
407 : RegisterID(
408 : ChannelListener* aRouted,
409 : int32 aId);
410 : virtual ChannelListener*
411 : Lookup(int32 aId);
412 : virtual void
413 : Unregister(int32 aId);
414 : virtual void
415 : RemoveManagee(
416 : int32 aProtocolId,
417 : ChannelListener* aListener);
418 : virtual Shmem::SharedMemory*
419 : CreateSharedMemory(
420 : size_t aSize,
421 : Shmem::SharedMemory::SharedMemoryType type,
422 : bool unsafe,
423 : Shmem::id_t* aId);
424 : virtual bool
425 : AdoptSharedMemory(
426 : Shmem::SharedMemory* segment,
427 : Shmem::id_t* aId);
428 : virtual Shmem::SharedMemory*
429 : LookupSharedMemory(Shmem::id_t aId);
430 : virtual bool
431 : IsTrackingSharedMemory(Shmem::SharedMemory* segment);
432 : virtual bool
433 : DestroySharedMemory(Shmem& aShmem);
434 : virtual ProcessHandle
435 : OtherProcess() const;
436 : virtual AsyncChannel*
437 : GetIPCChannel();
438 :
439 : virtual Result
440 : OnMessageReceived(const Message& __msg);
441 :
442 : virtual Result
443 : OnMessageReceived(
444 : const Message& __msg,
445 : Message*& __reply);
446 :
447 : virtual Result
448 : OnCallReceived(
449 : const Message& __msg,
450 : Message*& __reply);
451 :
452 : void
453 : OnProcessingError(Result code);
454 :
455 : bool
456 : OnReplyTimeout();
457 :
458 : void
459 : OnChannelClose();
460 :
461 : void
462 : OnChannelError();
463 :
464 : void
465 : OnChannelConnected(int32 pid);
466 :
467 : // Methods for managing shmem
468 : bool
469 : AllocShmem(
470 : size_t aSize,
471 : Shmem::SharedMemory::SharedMemoryType aType,
472 : Shmem* aMem);
473 :
474 : bool
475 : AllocUnsafeShmem(
476 : size_t aSize,
477 : Shmem::SharedMemory::SharedMemoryType aType,
478 : Shmem* aMem);
479 :
480 : bool
481 : AdoptShmem(
482 : Shmem& aMem,
483 : Shmem* aOutMem);
484 :
485 : bool
486 : DeallocShmem(Shmem& aMem);
487 :
488 : private:
489 : virtual void
490 : FatalError(const char* const msg) const;
491 :
492 : void
493 : DestroySubtree(ActorDestroyReason why);
494 :
495 : void
496 : DeallocSubtree();
497 :
498 : template<typename T>
499 : void
500 0 : Write(
501 : const T& __v,
502 : Message* __msg)
503 : {
504 0 : IPC::WriteParam(__msg, __v);
505 0 : }
506 :
507 : template<typename T>
508 : bool
509 0 : Read(
510 : T* __v,
511 : const Message* __msg,
512 : void** __iter)
513 : {
514 0 : return IPC::ReadParam(__msg, __iter, __v);
515 : }
516 :
517 : void
518 : Write(
519 : PBrowserParent* __v,
520 : Message* __msg,
521 : bool __nullable);
522 :
523 : bool
524 : Read(
525 : PBrowserParent** __v,
526 : const Message* __msg,
527 : void** __iter,
528 : bool __nullable) NS_WARN_UNUSED_RESULT;
529 :
530 : void
531 : Write(
532 : PContentDialogParent* __v,
533 : Message* __msg,
534 : bool __nullable);
535 :
536 : bool
537 : Read(
538 : PContentDialogParent** __v,
539 : const Message* __msg,
540 : void** __iter,
541 : bool __nullable) NS_WARN_UNUSED_RESULT;
542 :
543 : void
544 : Write(
545 : POfflineCacheUpdateParent* __v,
546 : Message* __msg,
547 : bool __nullable);
548 :
549 : bool
550 : Read(
551 : POfflineCacheUpdateParent** __v,
552 : const Message* __msg,
553 : void** __iter,
554 : bool __nullable) NS_WARN_UNUSED_RESULT;
555 :
556 : void
557 : Write(
558 : PContentPermissionRequestParent* __v,
559 : Message* __msg,
560 : bool __nullable);
561 :
562 : bool
563 : Read(
564 : PContentPermissionRequestParent** __v,
565 : const Message* __msg,
566 : void** __iter,
567 : bool __nullable) NS_WARN_UNUSED_RESULT;
568 :
569 : void
570 : Write(
571 : PDocumentRendererParent* __v,
572 : Message* __msg,
573 : bool __nullable);
574 :
575 : bool
576 : Read(
577 : PDocumentRendererParent** __v,
578 : const Message* __msg,
579 : void** __iter,
580 : bool __nullable) NS_WARN_UNUSED_RESULT;
581 :
582 : void
583 : Write(
584 : PRenderFrameParent* __v,
585 : Message* __msg,
586 : bool __nullable);
587 :
588 : bool
589 : Read(
590 : PRenderFrameParent** __v,
591 : const Message* __msg,
592 : void** __iter,
593 : bool __nullable) NS_WARN_UNUSED_RESULT;
594 :
595 : Channel* mChannel;
596 : int32 mId;
597 : mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>* mManager;
598 : State mState;
599 : // Sorted by pointer value
600 : InfallibleTArray<PContentDialogParent*> mManagedPContentDialogParent;
601 : // Sorted by pointer value
602 : InfallibleTArray<PDocumentRendererParent*> mManagedPDocumentRendererParent;
603 : // Sorted by pointer value
604 : InfallibleTArray<PContentPermissionRequestParent*> mManagedPContentPermissionRequestParent;
605 : // Sorted by pointer value
606 : InfallibleTArray<PRenderFrameParent*> mManagedPRenderFrameParent;
607 : // Sorted by pointer value
608 : InfallibleTArray<POfflineCacheUpdateParent*> mManagedPOfflineCacheUpdateParent;
609 : };
610 :
611 :
612 : } // namespace dom
613 : } // namespace mozilla
614 :
615 : #if 0
616 :
617 : //-----------------------------------------------------------------------------
618 : // Skeleton implementation of abstract actor class
619 :
620 : // Header file contents
621 : namespace mozilla {
622 : namespace dom {
623 : class BrowserParent :
624 : public PBrowserParent
625 : {
626 : virtual bool
627 : RecvAsyncMessage(
628 : const nsString& aMessage,
629 : const nsString& aJSON);
630 :
631 : virtual bool
632 : RecvMoveFocus(const bool& forward);
633 :
634 : virtual bool
635 : RecvEvent(const RemoteDOMEvent& aEvent);
636 :
637 : virtual bool
638 : AnswerCreateWindow(PBrowserParent** window);
639 :
640 : virtual bool
641 : RecvSyncMessage(
642 : const nsString& aMessage,
643 : const nsString& aJSON,
644 : InfallibleTArray<nsString>* retval);
645 :
646 : virtual bool
647 : RecvNotifyIMEFocus(
648 : const bool& focus,
649 : nsIMEUpdatePreference* preference,
650 : PRUint32* seqno);
651 :
652 : virtual bool
653 : RecvNotifyIMETextChange(
654 : const PRUint32& offset,
655 : const PRUint32& end,
656 : const PRUint32& newEnd);
657 :
658 : virtual bool
659 : RecvNotifyIMESelection(
660 : const PRUint32& seqno,
661 : const PRUint32& anchor,
662 : const PRUint32& focus);
663 :
664 : virtual bool
665 : RecvNotifyIMETextHint(const nsString& text);
666 :
667 : virtual bool
668 : RecvEndIMEComposition(
669 : const bool& cancel,
670 : nsString* composition);
671 :
672 : virtual bool
673 : RecvGetInputContext(
674 : PRInt32* IMEEnabled,
675 : PRInt32* IMEOpen);
676 :
677 : virtual bool
678 : RecvSetInputContext(
679 : const PRInt32& IMEEnabled,
680 : const PRInt32& IMEOpen,
681 : const nsString& type,
682 : const nsString& actionHint,
683 : const PRInt32& cause,
684 : const PRInt32& focusChange);
685 :
686 : virtual bool
687 : RecvGetDPI(float* value);
688 :
689 : virtual bool
690 : RecvGetWidgetNativeData(WindowsHandle* value);
691 :
692 : virtual bool
693 : RecvSetCursor(const PRUint32& value);
694 :
695 : virtual bool
696 : RecvSetBackgroundColor(const nscolor& color);
697 :
698 : virtual PContentPermissionRequestParent*
699 : AllocPContentPermissionRequest(
700 : const nsCString& aType,
701 : const URI& uri);
702 :
703 : virtual bool
704 : DeallocPContentPermissionRequest(PContentPermissionRequestParent* actor);
705 :
706 : virtual PContentDialogParent*
707 : AllocPContentDialog(
708 : const PRUint32& aType,
709 : const nsCString& aName,
710 : const nsCString& aFeatures,
711 : const InfallibleTArray<PRInt32>& aIntParams,
712 : const InfallibleTArray<nsString>& aStringParams);
713 :
714 : virtual bool
715 : DeallocPContentDialog(PContentDialogParent* actor);
716 :
717 : virtual PRenderFrameParent*
718 : AllocPRenderFrame();
719 :
720 : virtual bool
721 : DeallocPRenderFrame(PRenderFrameParent* actor);
722 :
723 : virtual POfflineCacheUpdateParent*
724 : AllocPOfflineCacheUpdate(
725 : const URI& manifestURI,
726 : const URI& documentURI,
727 : const nsCString& clientID,
728 : const bool& stickDocument);
729 :
730 : virtual bool
731 : DeallocPOfflineCacheUpdate(POfflineCacheUpdateParent* actor);
732 :
733 : virtual PDocumentRendererParent*
734 : AllocPDocumentRenderer(
735 : const nsRect& documentRect,
736 : const gfxMatrix& transform,
737 : const nsString& bgcolor,
738 : const PRUint32& renderFlags,
739 : const bool& flushLayout,
740 : const nsIntSize& renderSize);
741 :
742 : virtual bool
743 : DeallocPDocumentRenderer(PDocumentRendererParent* actor);
744 :
745 : BrowserParent();
746 : virtual ~BrowserParent();
747 : };
748 : } // namespace dom
749 : } // namespace mozilla
750 :
751 :
752 : // C++ file contents
753 : namespace mozilla {
754 : namespace dom {
755 : bool
756 : BrowserParent::RecvAsyncMessage(
757 : const nsString& aMessage,
758 : const nsString& aJSON)
759 : {
760 : return false;
761 : }
762 :
763 : bool
764 : BrowserParent::RecvMoveFocus(const bool& forward)
765 : {
766 : return false;
767 : }
768 :
769 : bool
770 : BrowserParent::RecvEvent(const RemoteDOMEvent& aEvent)
771 : {
772 : return false;
773 : }
774 :
775 : bool
776 : BrowserParent::AnswerCreateWindow(PBrowserParent** window)
777 : {
778 : return false;
779 : }
780 :
781 : bool
782 : BrowserParent::RecvSyncMessage(
783 : const nsString& aMessage,
784 : const nsString& aJSON,
785 : InfallibleTArray<nsString>* retval)
786 : {
787 : return false;
788 : }
789 :
790 : bool
791 : BrowserParent::RecvNotifyIMEFocus(
792 : const bool& focus,
793 : nsIMEUpdatePreference* preference,
794 : PRUint32* seqno)
795 : {
796 : return false;
797 : }
798 :
799 : bool
800 : BrowserParent::RecvNotifyIMETextChange(
801 : const PRUint32& offset,
802 : const PRUint32& end,
803 : const PRUint32& newEnd)
804 : {
805 : return false;
806 : }
807 :
808 : bool
809 : BrowserParent::RecvNotifyIMESelection(
810 : const PRUint32& seqno,
811 : const PRUint32& anchor,
812 : const PRUint32& focus)
813 : {
814 : return false;
815 : }
816 :
817 : bool
818 : BrowserParent::RecvNotifyIMETextHint(const nsString& text)
819 : {
820 : return false;
821 : }
822 :
823 : bool
824 : BrowserParent::RecvEndIMEComposition(
825 : const bool& cancel,
826 : nsString* composition)
827 : {
828 : return false;
829 : }
830 :
831 : bool
832 : BrowserParent::RecvGetInputContext(
833 : PRInt32* IMEEnabled,
834 : PRInt32* IMEOpen)
835 : {
836 : return false;
837 : }
838 :
839 : bool
840 : BrowserParent::RecvSetInputContext(
841 : const PRInt32& IMEEnabled,
842 : const PRInt32& IMEOpen,
843 : const nsString& type,
844 : const nsString& actionHint,
845 : const PRInt32& cause,
846 : const PRInt32& focusChange)
847 : {
848 : return false;
849 : }
850 :
851 : bool
852 : BrowserParent::RecvGetDPI(float* value)
853 : {
854 : return false;
855 : }
856 :
857 : bool
858 : BrowserParent::RecvGetWidgetNativeData(WindowsHandle* value)
859 : {
860 : return false;
861 : }
862 :
863 : bool
864 : BrowserParent::RecvSetCursor(const PRUint32& value)
865 : {
866 : return false;
867 : }
868 :
869 : bool
870 : BrowserParent::RecvSetBackgroundColor(const nscolor& color)
871 : {
872 : return false;
873 : }
874 :
875 : PContentPermissionRequestParent*
876 : BrowserParent::AllocPContentPermissionRequest(
877 : const nsCString& aType,
878 : const URI& uri)
879 : {
880 : return 0;
881 : }
882 :
883 : bool
884 : BrowserParent::DeallocPContentPermissionRequest(PContentPermissionRequestParent* actor)
885 : {
886 : return false;
887 : }
888 :
889 : PContentDialogParent*
890 : BrowserParent::AllocPContentDialog(
891 : const PRUint32& aType,
892 : const nsCString& aName,
893 : const nsCString& aFeatures,
894 : const InfallibleTArray<PRInt32>& aIntParams,
895 : const InfallibleTArray<nsString>& aStringParams)
896 : {
897 : return 0;
898 : }
899 :
900 : bool
901 : BrowserParent::DeallocPContentDialog(PContentDialogParent* actor)
902 : {
903 : return false;
904 : }
905 :
906 : PRenderFrameParent*
907 : BrowserParent::AllocPRenderFrame()
908 : {
909 : return 0;
910 : }
911 :
912 : bool
913 : BrowserParent::DeallocPRenderFrame(PRenderFrameParent* actor)
914 : {
915 : return false;
916 : }
917 :
918 : POfflineCacheUpdateParent*
919 : BrowserParent::AllocPOfflineCacheUpdate(
920 : const URI& manifestURI,
921 : const URI& documentURI,
922 : const nsCString& clientID,
923 : const bool& stickDocument)
924 : {
925 : return 0;
926 : }
927 :
928 : bool
929 : BrowserParent::DeallocPOfflineCacheUpdate(POfflineCacheUpdateParent* actor)
930 : {
931 : return false;
932 : }
933 :
934 : PDocumentRendererParent*
935 : BrowserParent::AllocPDocumentRenderer(
936 : const nsRect& documentRect,
937 : const gfxMatrix& transform,
938 : const nsString& bgcolor,
939 : const PRUint32& renderFlags,
940 : const bool& flushLayout,
941 : const nsIntSize& renderSize)
942 : {
943 : return 0;
944 : }
945 :
946 : bool
947 : BrowserParent::DeallocPDocumentRenderer(PDocumentRendererParent* actor)
948 : {
949 : return false;
950 : }
951 :
952 : BrowserParent::BrowserParent()
953 : {
954 : MOZ_COUNT_CTOR(BrowserParent);
955 : }
956 :
957 : BrowserParent::~BrowserParent()
958 : {
959 : MOZ_COUNT_DTOR(BrowserParent);
960 : }
961 :
962 : } // namespace dom
963 : } // namespace mozilla
964 : #endif // if 0
965 :
966 : #endif // ifndef PBrowserParent_h
|