OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ |
6 #define CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebInputEvent; | 12 class WebInputEvent; |
13 } | 13 } |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 // blink::WebInputEvent does not provide a virtual destructor. | 17 // blink::WebInputEvent does not provide a virtual destructor. |
18 struct CONTENT_EXPORT WebInputEventDeleter { | 18 struct CONTENT_EXPORT WebInputEventDeleter { |
19 WebInputEventDeleter(); | 19 WebInputEventDeleter(); |
20 void operator()(blink::WebInputEvent* web_event) const; | 20 void operator()(blink::WebInputEvent* web_event) const; |
21 }; | 21 }; |
22 typedef scoped_ptr<blink::WebInputEvent, | 22 typedef scoped_ptr<blink::WebInputEvent, WebInputEventDeleter> |
23 WebInputEventDeleter> ScopedWebInputEvent; | 23 ScopedWebInputEvent; |
24 | 24 |
25 } // namespace content | 25 } // namespace content |
26 | 26 |
27 #endif // CONTENT_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ | 27 #endif // CONTENT_PUBLIC_COMMON_INPUT_SCOPED_WEB_INPUT_EVENT_H_ |
OLD | NEW |