#ifndef ASH_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_
#define ASH_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_
#include "ash/ash_export.h"
#include "ui/events/event_rewriter.h"
namespace ash {
class ASH_EXPORT KeyboardDrivenEventRewriter : public ui::EventRewriter {
public:
KeyboardDrivenEventRewriter();
KeyboardDrivenEventRewriter(const KeyboardDrivenEventRewriter&) = delete;
KeyboardDrivenEventRewriter& operator=(const KeyboardDrivenEventRewriter&) =
delete;
~KeyboardDrivenEventRewriter() override;
ui::EventDispatchDetails RewriteForTesting(const ui::Event& event,
const Continuation continuation);
ui::EventDispatchDetails RewriteEvent(
const ui::Event& event,
const Continuation continuation) override;
void set_enabled(bool enabled) { enabled_ = enabled; }
void set_arrow_to_tab_rewriting_enabled(bool enabled) {
arrow_to_tab_rewriting_enabled_ = enabled;
}
private:
ui::EventDispatchDetails Rewrite(const ui::Event& event,
const Continuation continuation);
bool enabled_ = false;
bool arrow_to_tab_rewriting_enabled_ = false;
};
}
#endif