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

Unified Diff: chromeos/ime/composition_text.cc

Issue 750353004: Revert of Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « chromeos/ime/composition_text.h ('k') | chromeos/ime/composition_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/composition_text.cc
diff --git a/chromeos/ime/composition_text.cc b/chromeos/ime/composition_text.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8bc6b52bdb81e18c5d2cd44c751f36df095fc0da
--- /dev/null
+++ b/chromeos/ime/composition_text.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 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 "chromeos/ime/composition_text.h"
+
+namespace chromeos {
+
+CompositionText::CompositionText()
+ : selection_start_(0),
+ selection_end_(0) {}
+
+CompositionText::~CompositionText() {}
+
+void CompositionText::CopyFrom(const CompositionText& obj) {
+ text_ = obj.text();
+ underline_attributes_ = obj.underline_attributes();
+ selection_start_ = obj.selection_start();
+ selection_end_ = obj.selection_end();
+}
+
+} // namespace chromeos
« no previous file with comments | « chromeos/ime/composition_text.h ('k') | chromeos/ime/composition_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698