| Index: ui/display/types/fake_display_controller.h
|
| diff --git a/ui/display/types/fake_display_controller.h b/ui/display/types/fake_display_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4cae9ba93ed0e75cf9b21e9230a8b67dc703d285
|
| --- /dev/null
|
| +++ b/ui/display/types/fake_display_controller.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_
|
| +#define UI_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_
|
| +
|
| +#include <stdint.h>
|
| +
|
| +#include "ui/display/types/display_types_export.h"
|
| +
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
| +
|
| +namespace display {
|
| +
|
| +// Controls the fake display state. Provided by the NativeDisplayDelegate if
|
| +// it is intended for use off device where there are no physical displays and
|
| +// we need to fake the display state.
|
| +class DISPLAY_TYPES_EXPORT FakeDisplayController {
|
| + public:
|
| + virtual ~FakeDisplayController() {}
|
| +
|
| + // Adds a fake display with the specified size, returns the display id or
|
| + // |kInvalidDisplayId| if it fails.
|
| + virtual int64_t AddDisplay(const gfx::Size& display_size) = 0;
|
| +
|
| + // Removes a fake display with specified id, returns true if successful.
|
| + virtual bool RemoveDisplay(int64_t display_id) = 0;
|
| +};
|
| +
|
| +} // namespace display
|
| +
|
| +#endif // UI_DISPLAY_TYPES_FAKE_DISPLAY_CONTROLLER_H_
|
|
|