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" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // Overriden from ui::DisplayConfigurator::Observer: | 46 // Overriden from ui::DisplayConfigurator::Observer: |
47 void OnDisplayModeChanged( | 47 void OnDisplayModeChanged( |
48 const ui::DisplayConfigurator::DisplayStateList& outputs) override; | 48 const ui::DisplayConfigurator::DisplayStateList& outputs) override; |
49 void OnDisplayModeChangeFailed( | 49 void OnDisplayModeChangeFailed( |
50 const ui::DisplayConfigurator::DisplayStateList& displays, | 50 const ui::DisplayConfigurator::DisplayStateList& displays, |
51 ui::MultipleDisplayState failed_new_state) override; | 51 ui::MultipleDisplayState failed_new_state) override; |
52 | 52 |
53 // Overriden from ui::InputDeviceEventObserver: | 53 // Overriden from ui::InputDeviceEventObserver: |
54 void OnTouchscreenDeviceConfigurationChanged() override; | 54 void OnTouchscreenDeviceConfigurationChanged() override; |
55 void OnKeyboardDeviceConfigurationChanged() override; | |
56 void OnMouseDeviceConfigurationChanged() override; | |
57 void OnTouchpadDeviceConfigurationChanged() override; | |
58 | 55 |
59 // Overriden from ShellObserver: | 56 // Overriden from ShellObserver: |
60 void OnAppTerminating() override; | 57 void OnAppTerminating() override; |
61 | 58 |
62 // Exposed for testing. | 59 // Exposed for testing. |
63 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); | 60 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); |
64 | 61 |
65 private: | 62 private: |
66 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); | 63 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); |
67 }; | 64 }; |
68 | 65 |
69 } // namespace ash | 66 } // namespace ash |
70 | 67 |
71 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ | 68 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ |
OLD | NEW |