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

Unified Diff: chromeos/dbus/fake_permission_broker_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_modem_messaging_client.cc ('k') | chromeos/dbus/fake_permission_broker_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_permission_broker_client.h
diff --git a/chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h b/chromeos/dbus/fake_permission_broker_client.h
similarity index 25%
copy from chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h
copy to chromeos/dbus/fake_permission_broker_client.h
index 584a6907b8569f039f554b7024c7533c981461e1..a2b8978ac471e22184e8a2acc222cfa4e8fed54b 100644
--- a/chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h
+++ b/chromeos/dbus/fake_permission_broker_client.h
@@ -2,28 +2,32 @@
// 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_PERMISSION_BROKER_CLIENT_H_
+#define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "ui/events/event_handler.h"
+#include "chromeos/dbus/permission_broker_client.h"
namespace chromeos {
-// A class to handle special menu key for keyboard driven OOBE.
-class KeyboardDrivenOobeKeyHandler : public ui::EventHandler {
+class FakePermissionBrokerClient : public PermissionBrokerClient {
public:
- KeyboardDrivenOobeKeyHandler();
- virtual ~KeyboardDrivenOobeKeyHandler();
-
+ FakePermissionBrokerClient();
+ virtual ~FakePermissionBrokerClient();
+
+ virtual void Init(dbus::Bus* bus) OVERRIDE;
+ virtual void RequestPathAccess(const std::string& path,
+ int interface_id,
+ const ResultCallback& callback) OVERRIDE;
+ virtual void RequestUsbAccess(const uint16_t vendor_id,
+ const uint16_t product_id,
+ int interface_id,
+ const ResultCallback& callback) OVERRIDE;
private:
- // ui::EventHandler
- virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenOobeKeyHandler);
+ DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
};
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_
+#endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
« no previous file with comments | « chromeos/dbus/fake_modem_messaging_client.cc ('k') | chromeos/dbus/fake_permission_broker_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698