| 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_X11_NATIVE_DISPLAY_DELEGATE_OZONE_X11_H_ | |
| 6 #define UI_OZONE_PLATFORM_X11_NATIVE_DISPLAY_DELEGATE_OZONE_X11_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "base/observer_list.h" | |
| 13 #include "ui/display/types/native_display_delegate.h" | |
| 14 #include "ui/ozone/common/native_display_delegate_ozone.h" | |
| 15 | |
| 16 namespace ui { | |
| 17 | |
| 18 class NativeDisplayDelegateOzoneX11 : public NativeDisplayDelegateOzone { | |
| 19 public: | |
| 20 NativeDisplayDelegateOzoneX11(); | |
| 21 ~NativeDisplayDelegateOzoneX11() override; | |
| 22 | |
| 23 void OnConfigurationChanged(); | |
| 24 | |
| 25 // NativeDisplayDelegateOzone overrides: | |
| 26 void Initialize() override; | |
| 27 void AddObserver(NativeDisplayObserver* observer) override; | |
| 28 void RemoveObserver(NativeDisplayObserver* observer) override; | |
| 29 | |
| 30 private: | |
| 31 base::ObserverList<NativeDisplayObserver> observers_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzoneX11); | |
| 34 }; | |
| 35 | |
| 36 } // namespace ui | |
| 37 | |
| 38 #endif // UI_OZONE_PLATFORM_X11_NATIVE_DISPLAY_DELEGATE_OZONE_X11_H_ | |
| OLD | NEW |