Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/ipc/TabMessageUtils.cpp
Line
Count
Source (jump to first uncovered line)
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
ReadRemoteEvent(const IPC::Message* aMsg, PickleIterator* aIter,
17
                RemoteDOMEvent* aResult)
18
0
{
19
0
  aResult->mEvent = nullptr;
20
0
  nsString type;
21
0
  NS_ENSURE_TRUE(ReadParam(aMsg, aIter, &type), false);
22
0
23
0
  aResult->mEvent = EventDispatcher::CreateEvent(nullptr, nullptr, nullptr,
24
0
                                                 type);
25
0
26
0
  return aResult->mEvent->Deserialize(aMsg, aIter);
27
0
}
28
29
} // namespace dom
30
} // namespace mozilla