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

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

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: More fixes. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | services/ui/display/platform_screen_ozone.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PLATFORM_SCREEN_DELEGATE_H_ 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 16 matching lines...) Expand all
27 27
28 // Called when a display is removed. |id| is the display id of the display 28 // Called when a display is removed. |id| is the display id of the display
29 // that was removed. 29 // that was removed.
30 virtual void OnDisplayRemoved(int64_t id) = 0; 30 virtual void OnDisplayRemoved(int64_t id) = 0;
31 31
32 // Called when a display is modified. |id| is the display id of the modified 32 // Called when a display is modified. |id| is the display id of the modified
33 // display and |metrics| contains updated display viewport information. 33 // display and |metrics| contains updated display viewport information.
34 virtual void OnDisplayModified(int64_t id, 34 virtual void OnDisplayModified(int64_t id,
35 const ViewportMetrics& metrics) = 0; 35 const ViewportMetrics& metrics) = 0;
36 36
37 // Called when the primary display is changed.
38 virtual void OnPrimaryDisplayChanged(int64_t primary_display_id) = 0;
39
37 protected: 40 protected:
38 virtual ~PlatformScreenDelegate() {} 41 virtual ~PlatformScreenDelegate() {}
39 }; 42 };
40 43
41 } // namespace display 44 } // namespace display
42 45
43 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ 46 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/display/platform_screen_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698