OLD | NEW |
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_INTROSPECTABLE_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_ | 6 #define CHROMEOS_DBUS_FAKE_INTROSPECTABLE_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/introspectable_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 // The IntrospectableClient implementation used on Linux desktop, which does |
15 class KeyboardDrivenOobeKeyHandler : public ui::EventHandler { | 15 // nothing. |
| 16 class FakeIntrospectableClient: public IntrospectableClient { |
16 public: | 17 public: |
17 KeyboardDrivenOobeKeyHandler(); | 18 FakeIntrospectableClient(); |
18 virtual ~KeyboardDrivenOobeKeyHandler(); | 19 virtual ~FakeIntrospectableClient(); |
19 | 20 |
20 private: | 21 virtual void Init(dbus::Bus* bus) OVERRIDE; |
21 // ui::EventHandler | 22 virtual void Introspect(const std::string& service_name, |
22 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 23 const dbus::ObjectPath& object_path, |
23 | 24 const IntrospectCallback& callback) OVERRIDE; |
24 DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenOobeKeyHandler); | |
25 }; | 25 }; |
26 | 26 |
27 } // namespace chromeos | 27 } // namespace chromeos |
28 | 28 |
29 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_KEYBOARD_DRIVEN_OOBE_KEY_HANDLER_H_ | 29 #endif // CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ |
OLD | NEW |