OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ |
| 7 |
| 8 namespace ui { |
| 9 |
| 10 class HardwareDisplayController; |
| 11 |
| 12 class DisplayChangeObserver { |
| 13 public: |
| 14 virtual ~DisplayChangeObserver() {} |
| 15 |
| 16 // Called when |controller| was changed/added. |
| 17 virtual void OnDisplayChanged(HardwareDisplayController* controller) = 0; |
| 18 |
| 19 // Called just before |controller| is removed. Observers that cached |
| 20 // |controller| must invalidate it at this point. |
| 21 virtual void OnDisplayRemoved(HardwareDisplayController* controller) = 0; |
| 22 }; |
| 23 |
| 24 } // namespace ui |
| 25 |
| 26 #endif // UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ |
OLD | NEW |