Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3185)

Unified Diff: blimp/common/proto/ime.proto

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge origin/master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/common/proto/blimp_message.proto ('k') | blimp/engine/feature/engine_render_widget_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d40c1edc3e4e6c554c1ac5dc23737b5304524de8
--- /dev/null
+++ b/blimp/common/proto/ime.proto
@@ -0,0 +1,51 @@
+// 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 {
+ NONE = 0;
+ 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.
+ SET_TEXT = 3;
+ }
+
+ optional int32 render_widget_id = 1;
+ optional Type type = 2 [default = UNKNOWN];
+ optional InputType text_input_type = 3;
+ optional string ime_text = 4;
+}
« no previous file with comments | « blimp/common/proto/blimp_message.proto ('k') | blimp/engine/feature/engine_render_widget_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698