Chromium Code Reviews| Index: chromeos/ime/ibus_text.cc |
| diff --git a/chromeos/ime/ibus_text.cc b/chromeos/ime/ibus_text.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..39c7514f0a8f33685a0a4dd61b8fc3e46fe427d7 |
| --- /dev/null |
| +++ b/chromeos/ime/ibus_text.cc |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2012 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/ibus_text.h" |
| + |
| +#include "base/logging.h" |
| +#include "base/values.h" |
|
Seigo Nonaka
2013/11/13 14:09:52
These includes are no longer necessary.
Hiro Komatsu
2013/11/14 02:55:01
Done.
|
| + |
| +namespace chromeos { |
| + |
| +namespace { |
| + |
| +struct IBusAttribute { |
|
Seigo Nonaka
2013/11/13 14:09:52
Please remove this struct.
Hiro Komatsu
2013/11/14 02:55:01
Done.
|
| + IBusAttribute() : type(0), value(0), start_index(0), end_index(0) {} |
| + uint32 type; |
| + uint32 value; |
| + uint32 start_index; |
| + uint32 end_index; |
| +}; |
| + |
| +} // namespace |
| + |
| +/////////////////////////////////////////////////////////////////////////////// |
| +// IBusText |
| +IBusText::IBusText() |
| + : text_("") { |
| +} |
| + |
| +IBusText::~IBusText() { |
| +} |
| + |
| +void IBusText::CopyFrom(const IBusText& obj) { |
| + text_ = obj.text(); |
| + annotation_ = obj.annotation(); |
| + description_title_ = obj.description_title(); |
| + description_body_ = obj.description_body(); |
| + underline_attributes_ = obj.underline_attributes(); |
| + selection_attributes_ = obj.selection_attributes(); |
| +} |
| + |
| +} // namespace chromeos |