| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
| 13 #include "ash/common/shell_observer.h" | 13 #include "ash/common/shell_observer.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "ui/display/chromeos/display_configurator.h" | 15 #include "ui/display/chromeos/display_configurator.h" |
| 16 #include "ui/display/manager/managed_display_info.h" | 16 #include "ui/display/manager/managed_display_info.h" |
| 17 #include "ui/events/devices/input_device_event_observer.h" | 17 #include "ui/events/devices/input_device_event_observer.h" |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 | 20 |
| 21 class DisplayMode; | |
| 22 class DisplaySnapshot; | 21 class DisplaySnapshot; |
| 23 | 22 |
| 24 // An object that observes changes in display configuration and | 23 // An object that observes changes in display configuration and |
| 25 // update DisplayManagers. | 24 // update DisplayManagers. |
| 26 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController, | 25 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController, |
| 27 public ui::DisplayConfigurator::Observer, | 26 public ui::DisplayConfigurator::Observer, |
| 28 public ui::InputDeviceEventObserver, | 27 public ui::InputDeviceEventObserver, |
| 29 public ShellObserver { | 28 public ShellObserver { |
| 30 public: | 29 public: |
| 31 // Returns the mode list for internal display. | 30 // Returns the mode list for internal display. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Exposed for testing. | 62 // Exposed for testing. |
| 64 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); | 63 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); | 66 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace ash | 69 } // namespace ash |
| 71 | 70 |
| 72 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ | 71 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ |
| OLD | NEW |