| 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_SCREEN_MANAGER_OZONE_H_ | 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ |
| 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ | 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // mojom::DisplayController: | 59 // mojom::DisplayController: |
| 60 void IncreaseInternalDisplayZoom() override; | 60 void IncreaseInternalDisplayZoom() override; |
| 61 void DecreaseInternalDisplayZoom() override; | 61 void DecreaseInternalDisplayZoom() override; |
| 62 void ResetInternalDisplayZoom() override; | 62 void ResetInternalDisplayZoom() override; |
| 63 void RotateCurrentDisplayCW() override; | 63 void RotateCurrentDisplayCW() override; |
| 64 void SwapPrimaryDisplay() override; | 64 void SwapPrimaryDisplay() override; |
| 65 void ToggleMirrorMode() override; | 65 void ToggleMirrorMode() override; |
| 66 void SetDisplayWorkArea(int64_t display_id, | 66 void SetDisplayWorkArea(int64_t display_id, |
| 67 const gfx::Size& size, | 67 const gfx::Size& size, |
| 68 const gfx::Insets& insets) override; | 68 const gfx::Insets& insets) override; |
| 69 void TakeDisplayControl(const TakeDisplayControlCallback& callback) override; |
| 70 void RelinquishDisplayControl( |
| 71 const RelinquishDisplayControlCallback& callback) override; |
| 69 | 72 |
| 70 private: | 73 private: |
| 71 friend class ScreenManagerOzoneTest; | 74 friend class ScreenManagerOzoneTest; |
| 72 | 75 |
| 73 ViewportMetrics GetViewportMetricsForDisplay(const Display& display); | 76 ViewportMetrics GetViewportMetricsForDisplay(const Display& display); |
| 74 | 77 |
| 75 // DisplayObserver: | 78 // DisplayObserver: |
| 76 void OnDisplayAdded(const Display& new_display) override; | 79 void OnDisplayAdded(const Display& new_display) override; |
| 77 void OnDisplayRemoved(const Display& old_display) override; | 80 void OnDisplayRemoved(const Display& old_display) override; |
| 78 void OnDisplayMetricsChanged(const Display& display, | 81 void OnDisplayMetricsChanged(const Display& display, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 115 |
| 113 mojo::BindingSet<mojom::DisplayController> controller_bindings_; | 116 mojo::BindingSet<mojom::DisplayController> controller_bindings_; |
| 114 mojo::BindingSet<mojom::TestDisplayController> test_bindings_; | 117 mojo::BindingSet<mojom::TestDisplayController> test_bindings_; |
| 115 | 118 |
| 116 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzone); | 119 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzone); |
| 117 }; | 120 }; |
| 118 | 121 |
| 119 } // namespace display | 122 } // namespace display |
| 120 | 123 |
| 121 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ | 124 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ |
| OLD | NEW |