Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / common / input / input_event.cc
blobfd0796816df6641780c09e46373328d7119d7bc9
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"
9 namespace content {
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());
19 return event.Pass();
22 bool InputEvent::Initialize(int64 id, scoped_ptr<Payload> payload) {
23 id_ = id;
24 payload_ = payload.Pass();
25 return valid();
28 } // namespace content