Chromium Code Reviews| 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 TEXT = 1; | |
| 18 PASSWORD = 2; | |
| 19 SEARCH = 3; | |
| 20 EMAIL = 4; | |
| 21 NUMBER = 5; | |
| 22 TELEPHONE = 6; | |
| 23 URL = 7; | |
| 24 DATE = 8; | |
| 25 DATE_TIME = 9; | |
| 26 DATE_TIME_LOCAL = 10; | |
| 27 MONTH = 11; | |
| 28 TIME = 12; | |
| 29 WEEK = 13; | |
| 30 TEXT_AREA = 14; | |
| 31 CONTENT_EDITABLE = 15; | |
| 32 DATE_TIME_FIELD = 16; | |
| 33 } | |
| 34 | |
| 35 enum Type { | |
| 36 UNKNOWN = 0; | |
| 37 | |
| 38 // Server => Client types. | |
| 39 SHOW_IME = 1; | |
| 40 HIDE_IME = 2; | |
| 41 | |
| 42 // Client => Server types. | |
| 43 SHOW_TEXT = 3; | |
|
haibinlu
2016/03/17 18:59:46
Is this SHOW_TEXT or INSERT_TEXT as in the feature
David Trainor- moved to gerrit
2016/03/17 21:53:29
Maybe SET_TEXT?
shaktisahu
2016/03/18 19:08:06
Acknowledged.
shaktisahu
2016/03/18 19:08:06
Done.
| |
| 44 } | |
| 45 | |
| 46 optional Type type = 1; | |
| 47 optional InputType text_input_type = 2; | |
| 48 optional string ime_text = 3; | |
| 49 optional int32 render_widget_id = 4; | |
|
haibinlu
2016/03/17 18:59:46
nit. put render_widget_id as the first field.
| |
| 50 } | |
| OLD | NEW |