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

Unified Diff: ui/mojo/ime/text_input_state.mojom

Issue 2016583002: mojo/converters/ime,display -> ui/platform_window,display/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@converters_surfaces
Patch Set: . Created 4 years, 7 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 | « ui/mojo/ime/BUILD.gn ('k') | ui/platform_window/mojo/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/mojo/ime/text_input_state.mojom
diff --git a/ui/mojo/ime/text_input_state.mojom b/ui/mojo/ime/text_input_state.mojom
deleted file mode 100644
index a816929746d519a1608a53c58b8a56b4ef0f4dba..0000000000000000000000000000000000000000
--- a/ui/mojo/ime/text_input_state.mojom
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2015 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.
-
-module mojo;
-
-// Text input type which is based on blink::WebTextInputType.
-enum TextInputType {
- NONE,
- TEXT,
- PASSWORD,
- SEARCH,
- EMAIL,
- NUMBER,
- TELEPHONE,
- URL,
- DATE,
- DATE_TIME,
- DATE_TIME_LOCAL,
- MONTH,
- TIME,
- WEEK,
- TEXT_AREA,
- LAST = TEXT_AREA,
-};
-
-// Text input flag which is based on blink::WebTextInputFlags.
-enum TextInputFlag {
- NONE,
- AUTOCOMPLETE_ON = 0x001,
- AUTOCOMPLETE_OFF = 0x002,
- AUTOCORRECT_ON = 0x004,
- AUTOCORRECT_OFF = 0x008,
- SPELLCHECK_ON = 0x010,
- SPELLCHECK_OFF = 0x020,
- AUTOCAPITALIZE_NONE = 0x040,
- AUTOCAPITALIZE_CHARACTERS = 0x080,
- AUTOCAPITALIZE_WORDS = 0x100,
- AUTOCAPITALIZE_SENTENCES = 0x200,
- ALL = 0x3FF,
-};
-
-// Text input info which is based on blink::WebTextInputInfo.
-struct TextInputState {
- // The type of input field.
- TextInputType type;
-
- // The flags of the input field (autocorrect, autocomplete, etc.).
- int32 flags;
-
- // The value of the input field.
- string? text;
-
- // The cursor position of the current selection start, or the caret position
- // if nothing is selected.
- int32 selection_start;
-
- // The cursor position of the current selection end, or the caret position
- // if nothing is selected.
- int32 selection_end;
-
- // The start position of the current composition, or -1 if there is none.
- int32 composition_start;
-
- // The end position of the current composition, or -1 if there is none.
- int32 composition_end;
-
- // Whether or not inline composition can be performed for the current input.
- bool can_compose_inline;
-};
« no previous file with comments | « ui/mojo/ime/BUILD.gn ('k') | ui/platform_window/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698