| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ | 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ |
| 6 #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ | 6 #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // TODO(rjkroege): NativeDisplayObserver is misnamed as it tracks changes in | 45 // TODO(rjkroege): NativeDisplayObserver is misnamed as it tracks changes in |
| 46 // the physical "Screen". Consider renaming it to NativeScreenObserver. | 46 // the physical "Screen". Consider renaming it to NativeScreenObserver. |
| 47 // ui::NativeDisplayObserver: | 47 // ui::NativeDisplayObserver: |
| 48 void OnConfigurationChanged() override; | 48 void OnConfigurationChanged() override; |
| 49 | 49 |
| 50 // Display management callback. | 50 // Display management callback. |
| 51 void OnDisplaysAquired(const ConfiguredDisplayCallback& callback, | 51 void OnDisplaysAquired(const ConfiguredDisplayCallback& callback, |
| 52 const std::vector<ui::DisplaySnapshot*>& displays); | 52 const std::vector<ui::DisplaySnapshot*>& displays); |
| 53 | 53 |
| 54 // The display subsystem calls |OnDisplayConfigured| for each display that has |
| 55 // been successfully configured. This in turn calls |callback_| with the |
| 56 // identity and bounds of each physical display. |
| 57 void OnDisplayConfigured(const ConfiguredDisplayCallback& callback, |
| 58 int64_t id, |
| 59 const gfx::Rect& bounds, |
| 60 bool success); |
| 61 |
| 54 std::unique_ptr<ui::NativeDisplayDelegate> native_display_delegate_; | 62 std::unique_ptr<ui::NativeDisplayDelegate> native_display_delegate_; |
| 55 | 63 |
| 56 base::WeakPtrFactory<PlatformScreenImplOzone> weak_ptr_factory_; | 64 base::WeakPtrFactory<PlatformScreenImplOzone> weak_ptr_factory_; |
| 57 | 65 |
| 58 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone); | 66 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone); |
| 59 }; | 67 }; |
| 60 | 68 |
| 61 } // namespace ws | 69 } // namespace ws |
| 62 } // namespace mus | 70 } // namespace mus |
| 63 | 71 |
| 64 #endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ | 72 #endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ |
| OLD | NEW |