| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 // Message definitions for text input messages. | |
| 6 | |
| 7 syntax = "proto2"; | |
| 8 | |
| 9 option optimize_for = LITE_RUNTIME; | |
| 10 | |
| 11 package blimp; | |
| 12 | |
| 13 message ImeMessage { | |
| 14 // Text input type for IME which should be kept in sync with | |
| 15 // ui::TextInputType. | |
| 16 enum InputType { | |
| 17 NONE = 0; | |
| 18 TEXT = 1; | |
| 19 PASSWORD = 2; | |
| 20 SEARCH = 3; | |
| 21 EMAIL = 4; | |
| 22 NUMBER = 5; | |
| 23 TELEPHONE = 6; | |
| 24 URL = 7; | |
| 25 DATE = 8; | |
| 26 DATE_TIME = 9; | |
| 27 DATE_TIME_LOCAL = 10; | |
| 28 MONTH = 11; | |
| 29 TIME = 12; | |
| 30 WEEK = 13; | |
| 31 TEXT_AREA = 14; | |
| 32 CONTENT_EDITABLE = 15; | |
| 33 DATE_TIME_FIELD = 16; | |
| 34 } | |
| 35 | |
| 36 enum Type { | |
| 37 UNKNOWN = 0; | |
| 38 | |
| 39 // Server => Client types. | |
| 40 SHOW_IME = 1; | |
| 41 HIDE_IME = 2; | |
| 42 | |
| 43 // Client => Server types. | |
| 44 SET_TEXT = 3; | |
| 45 } | |
| 46 | |
| 47 optional int32 render_widget_id = 1; | |
| 48 optional Type type = 2 [default = UNKNOWN]; | |
| 49 optional InputType text_input_type = 3; | |
| 50 optional string ime_text = 4; | |
| 51 optional bool auto_submit = 5; | |
| 52 } | |
| OLD | NEW |