2015-05-03 22:32:37 +03: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 15:12:37 +04: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 17:22:23 +03:00
|
|
|
|
2014-03-18 08:48:21 +04:00
|
|
|
#include "mozilla/EventDispatcher.h"
|
2015-08-12 14:39:31 +03:00
|
|
|
#include "mozilla/dom/Event.h"
|
2012-06-07 12:41:59 +04:00
|
|
|
#include "mozilla/dom/TabMessageUtils.h"
|
2009-11-17 17:22:23 +03:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-04-21 07:09:15 +03:00
|
|
|
bool ReadRemoteEvent(const IPC::Message* aMsg, PickleIterator* aIter,
|
2009-11-17 17:22:23 +03:00
|
|
|
RemoteDOMEvent* aResult) {
|
2012-07-30 18:20:58 +04:00
|
|
|
aResult->mEvent = nullptr;
|
2009-11-17 17:22:23 +03:00
|
|
|
nsString type;
|
|
|
|
NS_ENSURE_TRUE(ReadParam(aMsg, aIter, &type), false);
|
|
|
|
|
2015-08-12 14:39:31 +03:00
|
|
|
aResult->mEvent =
|
|
|
|
EventDispatcher::CreateEvent(nullptr, nullptr, nullptr, type);
|
2009-11-17 17:22:23 +03:00
|
|
|
|
|
|
|
return aResult->mEvent->Deserialize(aMsg, aIter);
|
|
|
|
}
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|