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

Unified Diff: chromeos/dbus/ibus/ibus_client.h

Issue 67313006: Delete IBusClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete test. Created 7 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/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/ibus/ibus_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/ibus/ibus_client.h
diff --git a/chromeos/dbus/ibus/ibus_client.h b/chromeos/dbus/ibus/ibus_client.h
deleted file mode 100644
index 6245a29b465094c13c43a9ace53dea430ad38315..0000000000000000000000000000000000000000
--- a/chromeos/dbus/ibus/ibus_client.h
+++ /dev/null
@@ -1,79 +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.
-
-#ifndef CHROMEOS_DBUS_IBUS_IBUS_CLIENT_H_
-#define CHROMEOS_DBUS_IBUS_IBUS_CLIENT_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "chromeos/chromeos_export.h"
-#include "dbus/object_path.h"
-
-namespace dbus {
-class Bus;
-} // namespace dbus
-
-namespace chromeos {
-
-class IBusComponent;
-
-// A class to make the actual DBus calls for IBusBus service.
-// This class only makes calls, result/error handling should be done by
-// callbacks.
-class CHROMEOS_EXPORT IBusClient {
- public:
- enum ExitOption {
- RESTART_IBUS_DAEMON,
- SHUT_DOWN_IBUS_DAEMON
- };
- typedef base::Callback<void(const dbus::ObjectPath&)>
- CreateInputContextCallback;
- typedef base::Callback<void()> RegisterComponentCallback;
- typedef base::Callback<void()> ErrorCallback;
-
- virtual ~IBusClient();
-
- // Requests the ibus-daemon to create new input context. If succeeded,
- // |callback| will be called with an ObjectPath which is used in input context
- // handling. If failed, |error_callback| is called instead.
- virtual void CreateInputContext(
- const std::string& client_name,
- const CreateInputContextCallback& callback,
- const ErrorCallback& error_callback) = 0;
-
- // Requests the ibus-daemon to register new engine object. If succeeded,
- // |callback| will be called. If failed, |error_callback| is called instead.
- virtual void RegisterComponent(
- const IBusComponent& ibus_component,
- const RegisterComponentCallback& callback,
- const ErrorCallback& error_callback) = 0;
-
- // Requests the ibus-daemon to set global engine. If failed, |error_callback|
- // is called.
- virtual void SetGlobalEngine(const std::string& engine_name,
- const ErrorCallback& error_callback) = 0;
-
- // Requests the ibus-daemon to exit daemon process. If |option| is
- // RESTART_IBUS_DAEMON, ibus-daemon will be relaunched. If |option| is
- // SHUT_DOWN_IBUS_DAEMON, ibus-daemon will not be relaunched. The
- // |error_callback| is called if an error occurs.
- virtual void Exit(ExitOption option, const ErrorCallback& error_callback) = 0;
-
- // Factory function, creates a new instance and returns ownership.
- // For normal usage, access the singleton via DBusThreadManager::Get().
- static CHROMEOS_EXPORT IBusClient* Create();
-
- protected:
- // Create() should be used instead.
- IBusClient();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(IBusClient);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_IBUS_IBUS_CLIENT_H_
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/ibus/ibus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698