| 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 SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ | 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ |
| 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ | 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 PlatformScreenOzone(); | 34 PlatformScreenOzone(); |
| 35 ~PlatformScreenOzone() override; | 35 ~PlatformScreenOzone() override; |
| 36 | 36 |
| 37 // PlatformScreen: | 37 // PlatformScreen: |
| 38 void AddInterfaces(shell::InterfaceRegistry* registry) override; | 38 void AddInterfaces(shell::InterfaceRegistry* registry) override; |
| 39 void Init(PlatformScreenDelegate* delegate) override; | 39 void Init(PlatformScreenDelegate* delegate) override; |
| 40 void RequestCloseDisplay(int64_t display_id) override; | 40 void RequestCloseDisplay(int64_t display_id) override; |
| 41 int64_t GetPrimaryDisplayId() const override; | 41 int64_t GetPrimaryDisplayId() const override; |
| 42 | 42 |
| 43 // mojom::DisplayController: | 43 // mojom::DisplayController: |
| 44 void ToggleVirtualDisplay() override; | 44 void ToggleAddRemoveDisplay() override; |
| 45 void SwapPrimaryDisplay() override; |
| 46 void SetDisplayWorkArea(int64_t display_id, |
| 47 const gfx::Size& size, |
| 48 const gfx::Insets& insets) override; |
| 45 | 49 |
| 46 private: | 50 private: |
| 47 // TODO(kylechar): This struct is just temporary until we migrate | 51 // TODO(kylechar): This struct is just temporary until we migrate |
| 48 // DisplayManager code out of ash so it can be used here. | 52 // DisplayManager code out of ash so it can be used here. |
| 49 struct DisplayInfo { | 53 struct DisplayInfo { |
| 50 int64_t id = Display::kInvalidDisplayID; | 54 int64_t id = Display::kInvalidDisplayID; |
| 51 // The display bounds in DIP. | 55 // The display bounds in DIP. |
| 52 gfx::Rect bounds; | 56 gfx::Rect bounds; |
| 53 // Display size in DDP. | 57 // Display size in DDP. |
| 54 gfx::Size pixel_size; | 58 gfx::Size pixel_size; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 gfx::Point next_display_origin_; | 126 gfx::Point next_display_origin_; |
| 123 | 127 |
| 124 mojo::BindingSet<mojom::DisplayController> bindings_; | 128 mojo::BindingSet<mojom::DisplayController> bindings_; |
| 125 | 129 |
| 126 DISALLOW_COPY_AND_ASSIGN(PlatformScreenOzone); | 130 DISALLOW_COPY_AND_ASSIGN(PlatformScreenOzone); |
| 127 }; | 131 }; |
| 128 | 132 |
| 129 } // namespace display | 133 } // namespace display |
| 130 | 134 |
| 131 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ | 135 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_OZONE_H_ |
| OLD | NEW |