[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 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. | ||||
4 | |||||
5 | #ifndef CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ | ||||
6 | #define CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ | ||||
7 | |||||
[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 8 | #include "base/memory/scoped_ptr.h" |
9 | #include "content/common/content_export.h" | ||||
10 | |||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 11 | namespace blink { |
[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 12 | class WebInputEvent; |
13 | } | ||||
14 | |||||
15 | namespace content { | ||||
16 | |||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 17 | // blink::WebInputEvent does not provide a virtual destructor. |
[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 18 | struct CONTENT_EXPORT WebInputEventDeleter { |
19 | WebInputEventDeleter(); | ||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 20 | void operator()(blink::WebInputEvent* web_event) const; |
[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 21 | }; |
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 22 | typedef scoped_ptr<blink::WebInputEvent, |
[email protected] | 42d937a | 2013-10-08 21:18:55 | [diff] [blame] | 23 | WebInputEventDeleter> ScopedWebInputEvent; |
24 | |||||
25 | } // namespace content | ||||
26 | |||||
27 | #endif // CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ |