| 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_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 5 #ifndef ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
| 6 #define ASH_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 6 #define ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "ui/base/accelerators/accelerator.h" | 13 #include "ui/base/accelerators/accelerator.h" |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 class Widget; | 16 class Widget; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Flag to suppress starting the timer for testing. For test we call | 75 // Flag to suppress starting the timer for testing. For test we call |
| 76 // TimerAction() directly to simulate the expiration of the timer. | 76 // TimerAction() directly to simulate the expiration of the timer. |
| 77 bool stub_timer_for_test_; | 77 bool stub_timer_for_test_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(ExitWarningHandler); | 79 DISALLOW_COPY_AND_ASSIGN(ExitWarningHandler); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace ash | 82 } // namespace ash |
| 83 | 83 |
| 84 #endif // ASH_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_ | 84 #endif // ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_ |
| OLD | NEW |