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

Unified Diff: chrome/browser/chromeos/device/input_service_proxy.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/device/input_service_proxy.h
diff --git a/chrome/browser/chromeos/device/input_service_proxy.h b/chrome/browser/chromeos/device/input_service_proxy.h
index e41196f62ca05046a4dda634f82ab0fc329dce87..4514144935e74f7817712eeb6f2d4ca7017dbba8 100644
--- a/chrome/browser/chromeos/device/input_service_proxy.h
+++ b/chrome/browser/chromeos/device/input_service_proxy.h
@@ -35,7 +35,7 @@ class InputServiceProxy {
GetDeviceInfoCallback;
InputServiceProxy();
- ~InputServiceProxy();
+ virtual ~InputServiceProxy();
// Used for early init for cashing info about available HID.
static void WarmUp();
@@ -43,17 +43,20 @@ class InputServiceProxy {
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
- void GetDevices(const GetDevicesCallback& callback);
- void GetDeviceInfo(const std::string& id,
- const GetDeviceInfoCallback& callback);
+ virtual void GetDevices(const GetDevicesCallback& callback);
+ virtual void GetDeviceInfo(const std::string& id,
+ const GetDeviceInfoCallback& callback);
+
+ protected:
+ ObserverList<Observer> observers_;
private:
class ServiceObserver;
- void OnDeviceAdded(const device::InputServiceLinux::InputDeviceInfo& info);
- void OnDeviceRemoved(const std::string& id);
+ virtual void OnDeviceAdded(
+ const device::InputServiceLinux::InputDeviceInfo& info);
+ virtual void OnDeviceRemoved(const std::string& id);
- ObserverList<Observer> observers_;
scoped_ptr<ServiceObserver> service_observer_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698