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

Unified Diff: ash/ime/input_method_menu_item.cc

Issue 165783002: Reland of: Split out InputMethodMenuManager from InputMethodManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comment; spelling Created 6 years, 10 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 | « ash/ime/input_method_menu_item.h ('k') | ash/ime/input_method_menu_item_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime/input_method_menu_item.cc
diff --git a/chromeos/ime/input_method_property.cc b/ash/ime/input_method_menu_item.cc
similarity index 67%
rename from chromeos/ime/input_method_property.cc
rename to ash/ime/input_method_menu_item.cc
index c37d2181ed1ea538c85d2d04e806035df73215a4..6337ec5638e3784c1e1230c1ea91b558f87a92e0 100644
--- a/chromeos/ime/input_method_property.cc
+++ b/ash/ime/input_method_menu_item.cc
@@ -1,17 +1,17 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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/input_method_property.h"
+#include "ash/ime/input_method_menu_item.h"
#include <sstream>
#include "base/logging.h"
-namespace chromeos {
-namespace input_method {
+namespace ash {
+namespace ime {
-InputMethodProperty::InputMethodProperty(const std::string& in_key,
+InputMethodMenuItem::InputMethodMenuItem(const std::string& in_key,
const std::string& in_label,
bool in_is_selection_item,
bool in_is_selection_item_checked)
@@ -22,26 +22,26 @@ InputMethodProperty::InputMethodProperty(const std::string& in_key,
DCHECK(!key.empty());
}
-InputMethodProperty::InputMethodProperty()
+InputMethodMenuItem::InputMethodMenuItem()
: is_selection_item(false),
is_selection_item_checked(false) {
}
-InputMethodProperty::~InputMethodProperty() {
+InputMethodMenuItem::~InputMethodMenuItem() {
}
-bool InputMethodProperty::operator==(const InputMethodProperty& other) const {
+bool InputMethodMenuItem::operator==(const InputMethodMenuItem& other) const {
return key == other.key &&
label == other.label &&
is_selection_item == other.is_selection_item &&
is_selection_item_checked == other.is_selection_item_checked;
}
-bool InputMethodProperty::operator!=(const InputMethodProperty& other) const {
+bool InputMethodMenuItem::operator!=(const InputMethodMenuItem& other) const {
return !(*this == other);
}
-std::string InputMethodProperty::ToString() const {
+std::string InputMethodMenuItem::ToString() const {
std::stringstream stream;
stream << "key=" << key
<< ", label=" << label
@@ -50,5 +50,5 @@ std::string InputMethodProperty::ToString() const {
return stream.str();
}
-} // namespace input_method
-} // namespace chromeos
+} // namespace ime
+} // namespace ash
« no previous file with comments | « ash/ime/input_method_menu_item.h ('k') | ash/ime/input_method_menu_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698