OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_WAYLAND_DESKTOP_PLATFORM_SCREEN_DELEGATE_H_ |
| 6 #define UI_OZONE_PLATFORM_WAYLAND_DESKTOP_PLATFORM_SCREEN_DELEGATE_H_ |
| 7 |
| 8 namespace ui { |
| 9 |
| 10 // A simple observer interface for all clients interested in receiving various |
| 11 // output change notifications like size changes, when a new output is added, |
| 12 // etc. |
| 13 class DesktopPlatformScreenDelegate { |
| 14 public: |
| 15 // Called when the current output size has changed. |
| 16 virtual void OnOutputSizeChanged(int32_t name, |
| 17 unsigned width, |
| 18 unsigned height) = 0; |
| 19 |
| 20 protected: |
| 21 virtual ~DesktopPlatformScreenDelegate() {} |
| 22 }; |
| 23 |
| 24 } // namespace ui |
| 25 |
| 26 #endif // UI_OZONE_PLATFORM_WAYLAND_DESKTOP_PLATFORM_SCREEN_DELEGATE_H_ |
OLD | NEW |