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_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H | 5 #ifndef ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H |
6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H | 6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "ui/display/chromeos/output_configurator.h" | 11 #include "ui/display/chromeos/output_configurator.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace internal { | |
15 | 14 |
16 struct DisplayMode; | 15 struct DisplayMode; |
17 | 16 |
18 // An object that observes changes in display configuration and | 17 // An object that observes changes in display configuration and |
19 // update DisplayManagers. | 18 // update DisplayManagers. |
20 class DisplayChangeObserver : public ui::OutputConfigurator::StateController, | 19 class DisplayChangeObserver : public ui::OutputConfigurator::StateController, |
21 public ui::OutputConfigurator::Observer, | 20 public ui::OutputConfigurator::Observer, |
22 public ShellObserver { | 21 public ShellObserver { |
23 public: | 22 public: |
24 // Returns the resolution list. | 23 // Returns the resolution list. |
(...skipping 13 matching lines...) Expand all Loading... |
38 virtual void OnDisplayModeChanged( | 37 virtual void OnDisplayModeChanged( |
39 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE; | 38 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE; |
40 | 39 |
41 // Overriden from ShellObserver: | 40 // Overriden from ShellObserver: |
42 virtual void OnAppTerminating() OVERRIDE; | 41 virtual void OnAppTerminating() OVERRIDE; |
43 | 42 |
44 private: | 43 private: |
45 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); | 44 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); |
46 }; | 45 }; |
47 | 46 |
48 } // namespace internal | |
49 } // namespace ash | 47 } // namespace ash |
50 | 48 |
51 #endif // ASH_DISPLAY_AURA_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H | 49 #endif // ASH_DISPLAY_AURA_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H |
OLD | NEW |