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