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

Unified Diff: chrome/browser/chromeos/input_method/input_method_descriptor.cc

Issue 12453011: Move InputMethodManager to chromeos/ime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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
Index: chrome/browser/chromeos/input_method/input_method_descriptor.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_descriptor.cc b/chrome/browser/chromeos/input_method/input_method_descriptor.cc
deleted file mode 100644
index 9d1c3fbf2497f4236ba21daf474fb39efbe74684..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/input_method/input_method_descriptor.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// 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 "chrome/browser/chromeos/input_method/input_method_descriptor.h"
-
-#include <sstream>
-
-#include "base/logging.h"
-#include "base/strings/string_split.h"
-
-namespace chromeos {
-namespace input_method {
-
-namespace {
-const char kFallbackLayout[] = "us";
-} // namespace
-
-InputMethodDescriptor::InputMethodDescriptor(const std::string& id,
- const std::string& name,
- const std::string& keyboard_layout,
- const std::string& language_code,
- bool third_party)
- : id_(id),
- name_(name),
- keyboard_layout_(keyboard_layout),
- language_code_(language_code),
- third_party_(third_party) {
-}
-
-InputMethodDescriptor::InputMethodDescriptor() : third_party_(false) {
-}
-
-InputMethodDescriptor::~InputMethodDescriptor() {
-}
-
-bool InputMethodDescriptor::operator==(
- const InputMethodDescriptor& other) const {
- return id() == other.id();
-}
-
-bool InputMethodDescriptor::operator!=(
- const InputMethodDescriptor& other) const {
- return !(*this == other);
-}
-
-// static
-InputMethodDescriptor
-InputMethodDescriptor::GetFallbackInputMethodDescriptor() {
- return InputMethodDescriptor("xkb:us::eng",
- "",
- kFallbackLayout,
- "en-US",
- false);
-}
-
-std::string InputMethodDescriptor::ToString() const {
- std::stringstream stream;
- stream << "id=" << id()
- << ", name=" << name()
- << ", keyboard_layout=" << keyboard_layout()
- << ", language_code=" << language_code()
- << ", third_party=" << third_party();
- return stream.str();
-}
-
-} // namespace input_method
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698