| 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     SET_TEXT = 3; | 
 |  44   } | 
 |  45  | 
 |  46   optional int32 render_widget_id = 1; | 
 |  47   optional Type type = 2 [default = UNKNOWN]; | 
 |  48   optional InputType text_input_type = 3; | 
 |  49   optional string ime_text = 4; | 
 |  50 } | 
| OLD | NEW |