Chromium Code Reviews| Index: blimp/common/proto/ime.proto |
| diff --git a/blimp/common/proto/ime.proto b/blimp/common/proto/ime.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..17b2ac67166bafaf38dbea4e83ea543b1dbfb496 |
| --- /dev/null |
| +++ b/blimp/common/proto/ime.proto |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2016 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. |
| +// |
| +// Message definitions for text input messages. |
| + |
| +syntax = "proto2"; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| + |
| +package blimp; |
| + |
| +message ImeMessage { |
| + // Text input type for IME which should be kept in sync with |
| + // ui::TextInputType. |
| + enum InputType { |
| + TEXT = 1; |
| + PASSWORD = 2; |
| + SEARCH = 3; |
| + EMAIL = 4; |
| + NUMBER = 5; |
| + TELEPHONE = 6; |
| + URL = 7; |
| + DATE = 8; |
| + DATE_TIME = 9; |
| + DATE_TIME_LOCAL = 10; |
| + MONTH = 11; |
| + TIME = 12; |
| + WEEK = 13; |
| + TEXT_AREA = 14; |
| + CONTENT_EDITABLE = 15; |
| + DATE_TIME_FIELD = 16; |
| + } |
| + |
| + enum Type { |
| + UNKNOWN = 0; |
| + |
| + // Server => Client types. |
| + SHOW_IME = 1; |
| + HIDE_IME = 2; |
| + |
| + // Client => Server types. |
| + 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.
|
| + } |
| + |
| + optional Type type = 1; |
| + optional InputType text_input_type = 2; |
| + optional string ime_text = 3; |
| + optional int32 render_widget_id = 4; |
|
haibinlu
2016/03/17 18:59:46
nit. put render_widget_id as the first field.
|
| +} |