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_RESOLUTION_NOTIFICATION_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ |
6 #define ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ | 6 #define ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/display/display_controller.h" | 9 #include "ash/display/display_controller.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Create a new notification, or update its content if it already exists. | 72 // Create a new notification, or update its content if it already exists. |
73 // |enable_spoken_feedback| is set to false when the notification is updated | 73 // |enable_spoken_feedback| is set to false when the notification is updated |
74 // during the countdown so the update isn't necessarily read by the spoken | 74 // during the countdown so the update isn't necessarily read by the spoken |
75 // feedback. | 75 // feedback. |
76 void CreateOrUpdateNotification(bool enable_spoken_feedback); | 76 void CreateOrUpdateNotification(bool enable_spoken_feedback); |
77 | 77 |
78 // Called every second for timeout. | 78 // Called every second for timeout. |
79 void OnTimerTick(); | 79 void OnTimerTick(); |
80 | 80 |
81 // gfx::DisplayObserver overrides: | 81 // gfx::DisplayObserver overrides: |
82 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | |
83 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; | 82 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; |
84 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 83 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; |
| 84 virtual void OnDisplayMetricsChanged(const gfx::Display& display, |
| 85 uint32_t metrics) OVERRIDE; |
85 | 86 |
86 // DisplayController::Observer overrides: | 87 // DisplayController::Observer overrides: |
87 virtual void OnDisplayConfigurationChanged() OVERRIDE; | 88 virtual void OnDisplayConfigurationChanged() OVERRIDE; |
88 | 89 |
89 static void SuppressTimerForTest(); | 90 static void SuppressTimerForTest(); |
90 | 91 |
91 scoped_ptr<ResolutionChangeInfo> change_info_; | 92 scoped_ptr<ResolutionChangeInfo> change_info_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController); | 94 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace ash | 97 } // namespace ash |
97 | 98 |
98 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ | 99 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |