scoped_enable_unadjusted_mouse_events.h 849 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 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 UI_AURA_SCOPED_ENABLE_UNADJUSTED_MOUSE_EVENTS_H_
  5. #define UI_AURA_SCOPED_ENABLE_UNADJUSTED_MOUSE_EVENTS_H_
  6. #include "ui/aura/aura_export.h"
  7. namespace aura {
  8. // Scoping class that ensures correctly exit unadjusted mouse input. Start using
  9. // unadjusted mouse events (i.e. WM_INPUT on Windows) when this is constructed.
  10. // Destroying an instance of this class will exit the unadjusted mouse event
  11. // mode.
  12. class AURA_EXPORT ScopedEnableUnadjustedMouseEvents {
  13. public:
  14. virtual ~ScopedEnableUnadjustedMouseEvents() = default;
  15. protected:
  16. ScopedEnableUnadjustedMouseEvents() = default;
  17. };
  18. } // namespace aura
  19. #endif // UI_AURA_SCOPED_ENABLE_UNADJUSTED_MOUSE_EVENTS_H_