| Index: chrome/browser/chromeos/device/input_service_proxy_factory.h
|
| diff --git a/chrome/browser/chromeos/device/input_service_proxy_factory.h b/chrome/browser/chromeos/device/input_service_proxy_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..26e9dc39459916b73734f93f12e15dd38a9b7626
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/device/input_service_proxy_factory.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_
|
| +#define CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_
|
| +
|
| +#include "chrome/browser/chromeos/device/input_service_proxy.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +// A factory class for building an InputServiceProxy.
|
| +class InputServiceProxyFactory {
|
| + public:
|
| + // Returns a new instance of InputServiceProxy.
|
| + static InputServiceProxy* GetProxy();
|
| +
|
| + // Sets the factory for producing FakeInputService instances and back.
|
| + static void SetFakeForTesting(bool to_fake);
|
| +
|
| + // Returns true iff the factory is set for producing fakes.
|
| + static bool IsFakeSetForTesting();
|
| +
|
| + private:
|
| + static bool in_fake_mode_;
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_
|
|
|