2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-11-17 14:22:23 +00:00
|
|
|
|
2014-03-18 04:48:21 +00:00
|
|
|
#include "mozilla/EventDispatcher.h"
|
2015-08-12 11:39:31 +00:00
|
|
|
#include "mozilla/dom/Event.h"
|
2012-06-07 08:41:59 +00:00
|
|
|
#include "mozilla/dom/TabMessageUtils.h"
|
2009-11-17 14:22:23 +00:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
bool
|
2016-04-21 04:09:15 +00:00
|
|
|
ReadRemoteEvent(const IPC::Message* aMsg, PickleIterator* aIter,
|
2009-11-17 14:22:23 +00:00
|
|
|
RemoteDOMEvent* aResult)
|
|
|
|
{
|
2012-07-30 14:20:58 +00:00
|
|
|
aResult->mEvent = nullptr;
|
2009-11-17 14:22:23 +00:00
|
|
|
nsString type;
|
|
|
|
NS_ENSURE_TRUE(ReadParam(aMsg, aIter, &type), false);
|
|
|
|
|
2015-08-12 11:39:31 +00:00
|
|
|
aResult->mEvent = EventDispatcher::CreateEvent(nullptr, nullptr, nullptr,
|
|
|
|
type);
|
2009-11-17 14:22:23 +00:00
|
|
|
|
|
|
|
return aResult->mEvent->Deserialize(aMsg, aIter);
|
|
|
|
}
|
|
|
|
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|