Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: ui/display/types/virtual_display_controller.h

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Rebase and expand. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_VIRTUAL_DISPLAY_CONTROLLER_H_
6 #define UI_DISPLAY_TYPES_VIRTUAL_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 virtual display state. Provided by the NativeDisplayDelegate if
19 // it is intended for use off device where there are no real displays.
20 class DISPLAY_TYPES_EXPORT VirtualDisplayController {
21 public:
22 virtual ~VirtualDisplayController() {}
23
24 // Adds a virtual display with the specified size, returns the display id or
25 // |kInvalidDisplayId| if it fails.
26 virtual int64_t AddVirtualDisplay(const gfx::Size& display_size) = 0;
27
28 // Removes a virtual display, returns true if successful.
29 virtual bool RemoveVirtualDisplay(int64_t display_id) = 0;
30 };
31
32 } // namespace display
33
34 #endif // UI_DISPLAY_TYPES_VIRTUAL_DISPLAY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698