cast_touch_activity_observer.h 789 B

123456789101112131415161718192021222324
  1. // Copyright 2018 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. #ifndef CHROMECAST_GRAPHICS_CAST_TOUCH_ACTIVITY_OBSERVER_H_
  5. #define CHROMECAST_GRAPHICS_CAST_TOUCH_ACTIVITY_OBSERVER_H_
  6. namespace chromecast {
  7. class CastTouchActivityObserver {
  8. public:
  9. virtual ~CastTouchActivityObserver() = default;
  10. // Invoked when the window manager has touch input disabled.
  11. virtual void OnTouchEventsDisabled(bool disabled) = 0;
  12. // Invoked when input is disabled and an input event is received.
  13. // Can be used by the observer to turn touch input back on.
  14. virtual void OnTouchActivity() = 0;
  15. };
  16. } // namespace chromecast
  17. #endif // CHROMECAST_GRAPHICS_CAST_TOUCH_ACTIVITY_OBSERVER_H_