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

Unified Diff: content/common/text_input_state.cc

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/text_input_state.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/text_input_state.cc
diff --git a/content/common/text_input_state.cc b/content/common/text_input_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ec5fbfe9d4ea4adf6fa5475bc92827919cba84a1
--- /dev/null
+++ b/content/common/text_input_state.cc
@@ -0,0 +1,23 @@
+// 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.
+
+#include "content/common/text_input_state.h"
+
+namespace content {
+
+TextInputState::TextInputState()
+ : type(ui::TEXT_INPUT_TYPE_NONE),
+ mode(ui::TEXT_INPUT_MODE_DEFAULT),
+ flags(0),
+ selection_start(0),
+ selection_end(0),
+ composition_start(-1),
+ composition_end(-1),
+ can_compose_inline(true),
+ show_ime_if_needed(false),
+ is_non_ime_change(true) {}
+
+TextInputState::TextInputState(const TextInputState& other) = default;
+
+} // namespace content
« no previous file with comments | « content/common/text_input_state.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698