OLD | NEW |
| (Empty) |
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 UI_EVENTS_BLINK_SCOPED_WEB_INPUT_EVENT_H_ | |
6 #define UI_EVENTS_BLINK_SCOPED_WEB_INPUT_EVENT_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 namespace blink { | |
11 class WebInputEvent; | |
12 } | |
13 | |
14 namespace ui { | |
15 | |
16 // blink::WebInputEvent does not provide a virtual destructor. | |
17 struct WebInputEventDeleter { | |
18 WebInputEventDeleter(); | |
19 void operator()(blink::WebInputEvent* web_event) const; | |
20 }; | |
21 typedef std::unique_ptr<blink::WebInputEvent, WebInputEventDeleter> | |
22 ScopedWebInputEvent; | |
23 | |
24 } // namespace ui | |
25 | |
26 #endif // UI_EVENTS_BLINK_SCOPED_WEB_INPUT_EVENT_H_ | |
OLD | NEW |