Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: ash/display/shutdown_observer_chromeos.h

Issue 2523873002: Remove DisplayChangeObserver ash dependencies. (Closed)
Patch Set: Change DCO constructor slightly. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/shutdown_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698