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

Unified Diff: ui/events/devices/input_device_event_observer.h

Issue 945983002: Make ui::InputDeviceEventObserver provide a default implementation (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: ui/events/devices/input_device_event_observer.h
diff --git a/ui/events/devices/input_device_event_observer.h b/ui/events/devices/input_device_event_observer.h
index 707fea2095d6cf2d40675aba9cfcd4d5500716dc..a4b5ac99488ae0fcfdbd70cdc09438acc3a694ed 100644
--- a/ui/events/devices/input_device_event_observer.h
+++ b/ui/events/devices/input_device_event_observer.h
@@ -12,12 +12,13 @@ namespace ui {
// DeviceDataManager observer used to announce input hotplug events.
class EVENTS_DEVICES_EXPORT InputDeviceEventObserver {
public:
- virtual ~InputDeviceEventObserver() {}
+ virtual void OnKeyboardDeviceConfigurationChanged() {}
+ virtual void OnTouchscreenDeviceConfigurationChanged() {}
+ virtual void OnMouseDeviceConfigurationChanged() {}
+ virtual void OnTouchpadDeviceConfigurationChanged() {}
- virtual void OnKeyboardDeviceConfigurationChanged() = 0;
- virtual void OnTouchscreenDeviceConfigurationChanged() = 0;
- virtual void OnMouseDeviceConfigurationChanged() = 0;
- virtual void OnTouchpadDeviceConfigurationChanged() = 0;
+ protected:
+ virtual ~InputDeviceEventObserver() {}
sadrul 2015/02/20 20:12:27 I think this should remain public. Maybe make the
pkotwicz 2015/02/20 21:22:50 Ok, I've made the destructor public! We seem to m
sadrul 2015/02/23 17:02:52 I think the point of making the dtor protected is
};
} // namespace ui
« no previous file with comments | « chrome/browser/chromeos/system/pointer_device_observer.h ('k') | ui/events/devices/x11/device_data_manager_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698