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

Side by Side Diff: content/common/text_input_state.h

Issue 1889313002: Revert of Browser Side Text Input State Tracking for OOPIF (Manual). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/text_input_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef CONTENT_COMMON_TEXT_INPUT_STATE_H_
6 #define CONTENT_COMMON_TEXT_INPUT_STATE_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11 #include "ui/base/ime/text_input_mode.h"
12 #include "ui/base/ime/text_input_type.h"
13
14 namespace content {
15
16 struct CONTENT_EXPORT TextInputState {
17 TextInputState();
18 TextInputState(const TextInputState& other);
19
20 // Type of the input field.
21 ui::TextInputType type;
22
23 // The mode of input field.
24 ui::TextInputMode mode;
25
26 // The flags of input field (autocorrect, autocomplete, etc.)
27 int flags;
28
29 // The value of input field.
30 std::string value;
31
32 // The cursor position of the current selection start, or the caret position
33 // if nothing is selected.
34 int selection_start;
35
36 // The cursor position of the current selection end, or the caret position if
37 // nothing is selected.
38 int selection_end;
39
40 // The start position of the current composition, or -1 if there is none.
41 int composition_start;
42
43 // The end position of the current composition, or -1 if there is none.
44 int composition_end;
45
46 // Whether or not inline composition can be performed for the current input.
47 bool can_compose_inline;
48
49 // Whether or not the IME should be shown as a result of this update. Even if
50 // true, the IME will only be shown if the input is appropriate (e.g. not
51 // TEXT_INPUT_TYPE_NONE).
52 bool show_ime_if_needed;
53
54 // Whether this change is originated from non-IME (e.g., Javascript,
55 // Autofill).
56 bool is_non_ime_change;
57 };
58
59 } // namespace content
60
61 #endif // CONTENT_COMMON_TEXT_INPUT_STATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/text_input_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698