electron/shell/browser/ui/x/event_disabler.cc

28 lines
658 B
C++
Raw Normal View History

// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/x/event_disabler.h"
#include <memory>
namespace atom {
2018-04-18 01:55:30 +00:00
EventDisabler::EventDisabler() {}
2018-04-18 01:55:30 +00:00
EventDisabler::~EventDisabler() {}
ui::EventRewriteStatus EventDisabler::RewriteEvent(
const ui::Event& event,
std::unique_ptr<ui::Event>* rewritten_event) {
return ui::EVENT_REWRITE_DISCARD;
}
ui::EventRewriteStatus EventDisabler::NextDispatchEvent(
const ui::Event& last_event,
std::unique_ptr<ui::Event>* new_event) {
return ui::EVENT_REWRITE_CONTINUE;
}
} // namespace atom