summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/blink_text_input_type_converters.h
blob: 6bb35e97f97df5e1484a0475b8dfa818e1007b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2015 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_TEXT_INPUT_TYPE_CONVERTERS_H_
#define COMPONENTS_HTML_VIEWER_BLINK_TEXT_INPUT_TYPE_CONVERTERS_H_

#include "mojo/public/cpp/bindings/type_converter.h"
#include "third_party/WebKit/public/web/WebTextInputType.h"
#include "ui/mojo/ime/text_input_state.mojom.h"

namespace mojo {

template <>
struct TypeConverter<TextInputType, blink::WebTextInputType> {
  static TextInputType Convert(const blink::WebTextInputType& input);
};

}  // namespace mojo

#endif  // COMPONENTS_HTML_VIEWER_BLINK_TEXT_INPUT_TYPE_CONVERTERS_H_