1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/common/input/input_event.h"
7 #include "base/logging.h"
11 InputEvent::InputEvent() : id_(0) {}
13 InputEvent::~InputEvent() {}
15 scoped_ptr
<InputEvent
> InputEvent::Create(int64 id
,
16 scoped_ptr
<Payload
> payload
) {
17 scoped_ptr
<InputEvent
> event(new InputEvent());
18 event
->Initialize(id
, payload
.Pass());
22 bool InputEvent::Initialize(int64 id
, scoped_ptr
<Payload
> payload
) {
24 payload_
= payload
.Pass();
28 } // namespace content