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

Unified Diff: chrome/browser/chromeos/cros/fake/fake_input_method_library.h

Issue 2847072: Green Tree Tactical Force: Revert skrul's bad commits (probably a git-cl bug). (Closed)
Patch Set: Created 10 years, 5 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/cros/fake/fake_input_method_library.h
diff --git a/chrome/browser/chromeos/cros/fake/fake_input_method_library.h b/chrome/browser/chromeos/cros/fake/fake_input_method_library.h
deleted file mode 100644
index bc319eff98254a209174bdc2415ce701ce941e8c..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/fake/fake_input_method_library.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2010 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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_INPUT_METHOD_LIBRARY_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_INPUT_METHOD_LIBRARY_H_
-
-#include <string>
-
-#include "base/scoped_ptr.h"
-#include "chrome/browser/chromeos/cros/input_method_library.h"
-#include "third_party/cros/chromeos_input_method.h"
-
-namespace chromeos {
-
-class FakeInputMethodLibrary : public InputMethodLibrary {
- public:
- FakeInputMethodLibrary()
- : previous_input_method_("", "", "", ""),
- current_input_method_("", "", "", "") {
- }
-
- virtual ~FakeInputMethodLibrary() {}
- virtual void AddObserver(Observer* observer) {}
- virtual void RemoveObserver(Observer* observer) {}
- virtual InputMethodDescriptors* GetActiveInputMethods() {
- return CreateFallbackInputMethodDescriptors();
- }
- virtual size_t GetNumActiveInputMethods() {
- scoped_ptr<InputMethodDescriptors> input_methods(GetActiveInputMethods());
- return input_methods->size();
- }
- virtual InputMethodDescriptors* GetSupportedInputMethods() {
- return CreateFallbackInputMethodDescriptors();
- }
- virtual void ChangeInputMethod(const std::string& input_method_id) {}
- virtual void SetImePropertyActivated(const std::string& key,
- bool activated) {}
- virtual bool InputMethodIsActivated(const std::string& input_method_id) {
- return true;
- }
- virtual bool GetImeConfig(
- const char* section, const char* config_name, ImeConfigValue* out_value) {
- return true;
- }
- virtual bool SetImeConfig(const char* section,
- const char* config_name,
- const ImeConfigValue& value) {
- return true;
- }
-
- virtual const InputMethodDescriptor& previous_input_method() const {
- return previous_input_method_;
- }
- virtual const InputMethodDescriptor& current_input_method() const {
- return current_input_method_;
- }
-
- virtual const ImePropertyList& current_ime_properties() const {
- return current_ime_properties_;
- }
-
- private:
- InputMethodDescriptor previous_input_method_;
- InputMethodDescriptor current_input_method_;
- ImePropertyList current_ime_properties_;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_INPUT_METHOD_LIBRARY_H_
« no previous file with comments | « chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h ('k') | chrome/browser/chromeos/cros/fake/fake_keyboard_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698