summaryrefslogtreecommitdiffstats
path: root/content/common/input/scoped_web_input_event.h
blob: e25cc0c8959f6c06cbb209c483a256ff27babc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_
#define CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_

#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"

namespace blink {
class WebInputEvent;
}

namespace content {

// blink::WebInputEvent does not provide a virtual destructor.
struct CONTENT_EXPORT WebInputEventDeleter {
  WebInputEventDeleter();
  void operator()(blink::WebInputEvent* web_event) const;
};
typedef scoped_ptr<blink::WebInputEvent,
                   WebInputEventDeleter> ScopedWebInputEvent;

}  // namespace content

#endif  // CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_