blob: 9ced4e8f24f9f6fccccce11d4214e7d3f40b5568 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_TEST_OVERLAY_DELEGATE_H_
#define ASH_WM_TEST_OVERLAY_DELEGATE_H_
#include "ash/wm/overlay_event_filter.h"
namespace ash {
class TestOverlayDelegate : public OverlayEventFilter::Delegate {
public:
TestOverlayDelegate();
TestOverlayDelegate(const TestOverlayDelegate&) = delete;
TestOverlayDelegate& operator=(const TestOverlayDelegate&) = delete;
virtual ~TestOverlayDelegate();
int GetCancelCountAndReset();
private:
// Overridden from OverlayEventFilter::Delegate:
void Cancel() override;
bool IsCancelingKeyEvent(ui::KeyEvent* event) override;
aura::Window* GetWindow() override;
int cancel_count_;
};
} // namespace ash
#endif // ASH_WM_TEST_OVERLAY_DELEGATE_H_