Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #include "mozilla/EventDispatcher.h"
8 : #include "mozilla/dom/Event.h"
9 : #include "mozilla/dom/TabMessageUtils.h"
10 : #include "nsCOMPtr.h"
11 :
12 : namespace mozilla {
13 : namespace dom {
14 :
15 : bool
16 0 : ReadRemoteEvent(const IPC::Message* aMsg, PickleIterator* aIter,
17 : RemoteDOMEvent* aResult)
18 : {
19 0 : aResult->mEvent = nullptr;
20 0 : nsString type;
21 0 : NS_ENSURE_TRUE(ReadParam(aMsg, aIter, &type), false);
22 :
23 0 : aResult->mEvent = EventDispatcher::CreateEvent(nullptr, nullptr, nullptr,
24 0 : type);
25 :
26 0 : return aResult->mEvent->Deserialize(aMsg, aIter);
27 : }
28 :
29 : } // namespace dom
30 : } // namespace mozilla
|