OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 5 #ifndef ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
6 #define ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 6 #define ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
11 #include "ui/base/accelerators/accelerator.h" | 12 #include "ui/base/accelerators/accelerator.h" |
12 | 13 |
13 namespace views { | 14 namespace views { |
14 class Widget; | 15 class Widget; |
15 } | 16 } |
16 | 17 |
17 namespace ash { | 18 namespace ash { |
18 | 19 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Flag to suppress starting the timer for testing. For test we call | 79 // Flag to suppress starting the timer for testing. For test we call |
79 // TimerAction() directly to simulate the expiration of the timer. | 80 // TimerAction() directly to simulate the expiration of the timer. |
80 bool stub_timer_for_test_; | 81 bool stub_timer_for_test_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(ExitWarningHandler); | 83 DISALLOW_COPY_AND_ASSIGN(ExitWarningHandler); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace ash | 86 } // namespace ash |
86 | 87 |
87 #endif // ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 88 #endif // ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
OLD | NEW |