1// Copyright 2014 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
5#include "ash/test/test_overlay_delegate.h"
6
7namespace ash {
8namespace test {
9
10TestOverlayDelegate::TestOverlayDelegate()
11    : cancel_count_(0) {}
12TestOverlayDelegate::~TestOverlayDelegate() {}
13
14int TestOverlayDelegate::GetCancelCountAndReset() {
15  int count = cancel_count_;
16  cancel_count_ = 0;
17  return count;
18}
19
20void TestOverlayDelegate::Cancel() {
21  ++cancel_count_;
22}
23
24bool TestOverlayDelegate::IsCancelingKeyEvent(ui::KeyEvent* event) {
25  return false;
26}
27
28aura::Window* TestOverlayDelegate::GetWindow() {
29  return NULL;
30}
31
32}  // namespace test
33}  // namespace ash
34