blob: d12b1a7dae69b91f03aefd7f0f171ed8caf2a8d8 [file] [log] [blame]
[email protected]42d937a2013-10-08 21:18:551// 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.
4
5#ifndef CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_
6#define CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_
7
[email protected]42d937a2013-10-08 21:18:558#include "base/memory/scoped_ptr.h"
9#include "content/common/content_export.h"
10
[email protected]180ef242013-11-07 06:50:4611namespace blink {
[email protected]42d937a2013-10-08 21:18:5512class WebInputEvent;
13}
14
15namespace content {
16
[email protected]180ef242013-11-07 06:50:4617// blink::WebInputEvent does not provide a virtual destructor.
[email protected]42d937a2013-10-08 21:18:5518struct CONTENT_EXPORT WebInputEventDeleter {
19 WebInputEventDeleter();
[email protected]180ef242013-11-07 06:50:4620 void operator()(blink::WebInputEvent* web_event) const;
[email protected]42d937a2013-10-08 21:18:5521};
[email protected]180ef242013-11-07 06:50:4622typedef scoped_ptr<blink::WebInputEvent,
[email protected]42d937a2013-10-08 21:18:5523 WebInputEventDeleter> ScopedWebInputEvent;
24
25} // namespace content
26
27#endif // CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_