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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/shell_observer.h" | 11 #include "ash/shell_observer.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "ui/display/chromeos/display_configurator.h" | 13 #include "ui/display/chromeos/display_configurator.h" |
14 #include "ui/events/input_device_event_observer.h" | 14 #include "ui/events/devices/input_device_event_observer.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 class DisplayInfo; | 18 class DisplayInfo; |
19 struct DisplayMode; | 19 struct DisplayMode; |
20 | 20 |
21 // An object that observes changes in display configuration and | 21 // An object that observes changes in display configuration and |
22 // update DisplayManagers. | 22 // update DisplayManagers. |
23 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController, | 23 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController, |
24 public ui::DisplayConfigurator::Observer, | 24 public ui::DisplayConfigurator::Observer, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Exposed for testing. | 57 // Exposed for testing. |
58 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); | 58 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); |
59 | 59 |
60 private: | 60 private: |
61 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); | 61 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace ash | 64 } // namespace ash |
65 | 65 |
66 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ | 66 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ |
OLD | NEW |