summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/blink_input_events_type_converters.h
blob: 26247b3e24c99e9ce176091abc0e8bbe55d6b2ad (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
// Copyright 2014 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 COMPONENTS_HTML_VIEWER_BLINK_INPUT_EVENTS_TYPE_CONVERTERS_H_
#define COMPONENTS_HTML_VIEWER_BLINK_INPUT_EVENTS_TYPE_CONVERTERS_H_

#include "base/memory/scoped_ptr.h"
#include "ui/mojo/events/input_events.mojom.h"

namespace blink {
class WebInputEvent;
}

namespace mojo {

template <>
struct TypeConverter<scoped_ptr<blink::WebInputEvent>, EventPtr> {
  static scoped_ptr<blink::WebInputEvent> Convert(const EventPtr& input);
};

}  // namespace mojo

#endif  // COMPONENTS_HTML_VIEWER_BLINK_INPUT_EVENTS_TYPE_CONVERTERS_H_