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

Side by Side Diff: services/ui/display/platform_screen_delegate.h

Issue 2274353003: Add PlatformScreenDelegate and start implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for comments. 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 SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
7
8 #include <stdint.h>
9
10 namespace gfx {
11 class Rect;
12 }
13
14 namespace display {
15
16 class PlatformScreen;
17
18 // The PlatformScreenDelegate will be informed of changes to the physical
19 // and/or virtual displays by PlatformScreen.
20 class PlatformScreenDelegate {
21 public:
22 // TODO(kylechar): We need to provide more than just the window bounds when
23 // displays are added or modified.
24
25 // Called when a display is added.
26 virtual void OnDisplayAdded(PlatformScreen* platform_screen,
27 int64_t id,
28 const gfx::Rect& bounds) = 0;
sky 2016/08/25 23:40:31 Please clarify what the units are here. DIP or pix
kylechar 2016/08/26 13:21:19 Done.
29
30 // Called when a display is removed.
31 virtual void OnDisplayRemoved(int64_t id) = 0;
32
33 // Called when a display is modified.
34 virtual void OnDisplayModified(int64_t id, const gfx::Rect& bounds) = 0;
35
36 protected:
37 virtual ~PlatformScreenDelegate() {}
38 };
39
40 } // namespace display
41
42 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698