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

Side by Side Diff: chrome/browser/chromeos/device/input_service_proxy_factory.h

Issue 913773002: Created fakes for HID-detection screen testing. Initial browsertest added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698