| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 #ifndef ASH_DISPLAY_SHUTDOWN_OBSERVER_CHROMEOS_H_ |
| 6 #define ASH_DISPLAY_SHUTDOWN_OBSERVER_CHROMEOS_H_ |
| 7 |
| 8 #include "ash/common/shell_observer.h" |
| 9 #include "base/macros.h" |
| 10 |
| 11 namespace ui { |
| 12 class DisplayConfigurator; |
| 13 } |
| 14 |
| 15 namespace ash { |
| 16 |
| 17 // Adds self as ShellObserver and listens for OnAppTerminating() on behalf of |
| 18 // |display_configurator_|. |
| 19 class ShutdownObserver : public ShellObserver { |
| 20 public: |
| 21 explicit ShutdownObserver(ui::DisplayConfigurator* display_configurator); |
| 22 ~ShutdownObserver() override; |
| 23 |
| 24 private: |
| 25 // ShellObserver: |
| 26 void OnAppTerminating() override; |
| 27 |
| 28 ui::DisplayConfigurator* display_configurator_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ShutdownObserver); |
| 31 }; |
| 32 |
| 33 } // namespace ash |
| 34 |
| 35 #endif // ASH_DISPLAY_SHUTDOWN_OBSERVER_CHROMEOS_H_ |
| OLD | NEW |