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_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_ |
| 6 #define UI_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "ui/display/types/display_types_export.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Size; |
| 14 } |
| 15 |
| 16 namespace display { |
| 17 |
| 18 // Controls the fake display state. Provided by the NativeDisplayDelegate if |
| 19 // it is intended for use off device where there are no physical displays and |
| 20 // we need to fake the display state. |
| 21 class DISPLAY_TYPES_EXPORT FakeDisplayController { |
| 22 public: |
| 23 // Adds a fake display with the specified size, returns the display id or |
| 24 // |kInvalidDisplayId| if it fails. |
| 25 virtual int64_t AddDisplay(const gfx::Size& display_size) = 0; |
| 26 |
| 27 // Removes a fake display with specified id, returns true if successful. |
| 28 virtual bool RemoveDisplay(int64_t display_id) = 0; |
| 29 |
| 30 protected: |
| 31 virtual ~FakeDisplayController() {} |
| 32 }; |
| 33 |
| 34 } // namespace display |
| 35 |
| 36 #endif // UI_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_ |
OLD | NEW |