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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_ 6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/events/event_handler.h" 10 #include "chromeos/dbus/permission_broker_client.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // A class to handle special menu key for keyboard driven OOBE. 14 class FakePermissionBrokerClient : public PermissionBrokerClient {
15 class KeyboardDrivenOobeKeyHandler : public ui::EventHandler {
16 public: 15 public:
17 KeyboardDrivenOobeKeyHandler(); 16 FakePermissionBrokerClient();
18 virtual ~KeyboardDrivenOobeKeyHandler(); 17 virtual ~FakePermissionBrokerClient();
19 18
19 virtual void Init(dbus::Bus* bus) OVERRIDE;
20 virtual void RequestPathAccess(const std::string& path,
21 int interface_id,
22 const ResultCallback& callback) OVERRIDE;
23 virtual void RequestUsbAccess(const uint16_t vendor_id,
24 const uint16_t product_id,
25 int interface_id,
26 const ResultCallback& callback) OVERRIDE;
20 private: 27 private:
21 // ui::EventHandler 28 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
22 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
23
24 DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenOobeKeyHandler);
25 }; 29 };
26 30
27 } // namespace chromeos 31 } // namespace chromeos
28 32
29 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_ 33 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
OLDNEW
« 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