event_disabler.cc 638 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2016 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "atom/browser/ui/x/event_disabler.h"
  5. namespace atom {
  6. EventDisabler::EventDisabler() {}
  7. EventDisabler::~EventDisabler() {}
  8. ui::EventRewriteStatus EventDisabler::RewriteEvent(
  9. const ui::Event& event,
  10. std::unique_ptr<ui::Event>* rewritten_event) {
  11. return ui::EVENT_REWRITE_DISCARD;
  12. }
  13. ui::EventRewriteStatus EventDisabler::NextDispatchEvent(
  14. const ui::Event& last_event,
  15. std::unique_ptr<ui::Event>* new_event) {
  16. return ui::EVENT_REWRITE_CONTINUE;
  17. }
  18. } // namespace atom