OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_TEST_OVERLAY_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_OVERLAY_DELEGATE_H_ |
6 #define ASH_TEST_TEST_OVERLAY_DELEGATE_H_ | 6 #define ASH_TEST_TEST_OVERLAY_DELEGATE_H_ |
7 | 7 |
8 #include "ash/wm/overlay_event_filter.h" | 8 #include "ash/wm/overlay_event_filter.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace test { | 11 namespace test { |
12 | 12 |
13 class TestOverlayDelegate : public OverlayEventFilter::Delegate { | 13 class TestOverlayDelegate : public OverlayEventFilter::Delegate { |
14 public: | 14 public: |
15 TestOverlayDelegate(); | 15 TestOverlayDelegate(); |
16 virtual ~TestOverlayDelegate(); | 16 virtual ~TestOverlayDelegate(); |
17 | 17 |
18 int GetCancelCountAndReset(); | 18 int GetCancelCountAndReset(); |
19 | 19 |
20 private: | 20 private: |
21 // Overridden from OverlayEventFilter::Delegate: | 21 // Overridden from OverlayEventFilter::Delegate: |
22 virtual void Cancel() OVERRIDE; | 22 virtual void Cancel() override; |
23 virtual bool IsCancelingKeyEvent(ui::KeyEvent* event) OVERRIDE; | 23 virtual bool IsCancelingKeyEvent(ui::KeyEvent* event) override; |
24 virtual aura::Window* GetWindow() OVERRIDE; | 24 virtual aura::Window* GetWindow() override; |
25 | 25 |
26 int cancel_count_; | 26 int cancel_count_; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(TestOverlayDelegate); | 28 DISALLOW_COPY_AND_ASSIGN(TestOverlayDelegate); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace test | 31 } // namespace test |
32 } // namespace ash | 32 } // namespace ash |
33 | 33 |
34 #endif // ASH_TEST_TEST_OVERLAY_DELEGATE_H_ | 34 #endif // ASH_TEST_TEST_OVERLAY_DELEGATE_H_ |
OLD | NEW |