OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_ |
| 7 |
| 8 #include "chrome/browser/chromeos/device/input_service_proxy.h" |
| 9 |
| 10 namespace chromeos { |
| 11 |
| 12 // A factory class for building an InputServiceProxy. |
| 13 class InputServiceProxyFactory { |
| 14 public: |
| 15 // Returns a new instance of InputServiceProxy. |
| 16 static InputServiceProxy* GetProxy(); |
| 17 |
| 18 // Sets the factory for producing FakeInputService instances and back. |
| 19 static void SetFakeForTesting(bool to_fake); |
| 20 |
| 21 // Returns true iff the factory is set for producing fakes. |
| 22 static bool IsFakeSetForTesting(); |
| 23 |
| 24 private: |
| 25 static bool in_fake_mode_; |
| 26 }; |
| 27 |
| 28 } // namespace chromeos |
| 29 |
| 30 |
| 31 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_ |
OLD | NEW |