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

Unified Diff: chromeos/dbus/fake_sms_client.h

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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_permission_broker_client.cc ('k') | chromeos/dbus/fake_sms_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_sms_client.h
diff --git a/chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h b/chromeos/dbus/fake_sms_client.h
similarity index 30%
copy from chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h
copy to chromeos/dbus/fake_sms_client.h
index 584a6907b8569f039f554b7024c7533c981461e1..816fca0117897774c9f051c17b9743685a33ae6e 100644
--- a/chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h
+++ b/chromeos/dbus/fake_sms_client.h
@@ -2,28 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_
+#ifndef CHROMEOS_DBUS_FAKE_SMS_CLIENT_H_
+#define CHROMEOS_DBUS_FAKE_SMS_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "ui/events/event_handler.h"
+#include "base/memory/weak_ptr.h"
+#include "chromeos/dbus/sms_client.h"
namespace chromeos {
-// A class to handle special menu key for keyboard driven OOBE.
-class KeyboardDrivenOobeKeyHandler : public ui::EventHandler {
+class FakeSMSClient : public SMSClient {
public:
- KeyboardDrivenOobeKeyHandler();
- virtual ~KeyboardDrivenOobeKeyHandler();
+ FakeSMSClient();
+ virtual ~FakeSMSClient();
+
+ virtual void Init(dbus::Bus* bus) OVERRIDE;
+
+ virtual void GetAll(const std::string& service_name,
+ const dbus::ObjectPath& object_path,
+ const GetAllCallback& callback) OVERRIDE;
private:
- // ui::EventHandler
- virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
+ void OnGetAll(base::DictionaryValue* sms, const GetAllCallback& callback);
+
+ base::WeakPtrFactory<FakeSMSClient> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenOobeKeyHandler);
+ DISALLOW_COPY_AND_ASSIGN(FakeSMSClient);
};
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_
+#endif // CHROMEOS_DBUS_FAKE_SMS_CLIENT_H_
« no previous file with comments | « chromeos/dbus/fake_permission_broker_client.cc ('k') | chromeos/dbus/fake_sms_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698