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

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

Issue 2692863009: Remove usage of ws::Display in ws::UserDisplayManager. (Closed)
Patch Set: Fix mash_browser_tests. Created 3 years, 10 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
« no previous file with comments | « no previous file | services/ui/display/screen_manager_ozone_external.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_SCREEN_MANAGER_H_ 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_H_
6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_H_ 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 // Triggers initial display configuration to start. On device this will 33 // Triggers initial display configuration to start. On device this will
34 // configuration the connected displays. Off device this will create one or 34 // configuration the connected displays. Off device this will create one or
35 // more fake displays and pretend to configure them. A non-null |delegate| 35 // more fake displays and pretend to configure them. A non-null |delegate|
36 // must be provided that will receive notifications when displays are added, 36 // must be provided that will receive notifications when displays are added,
37 // removed or modified. 37 // removed or modified.
38 virtual void Init(ScreenManagerDelegate* delegate) = 0; 38 virtual void Init(ScreenManagerDelegate* delegate) = 0;
39 39
40 // Handle requests from the platform to close a display. 40 // Handle requests from the platform to close a display.
41 virtual void RequestCloseDisplay(int64_t display_id) = 0; 41 virtual void RequestCloseDisplay(int64_t display_id) = 0;
42 42
43 virtual int64_t GetPrimaryDisplayId() const = 0;
44
45 private: 43 private:
46 static ScreenManager* instance_; // Instance is not owned. 44 static ScreenManager* instance_; // Instance is not owned.
47 45
48 DISALLOW_COPY_AND_ASSIGN(ScreenManager); 46 DISALLOW_COPY_AND_ASSIGN(ScreenManager);
49 }; 47 };
50 48
51 } // namespace display 49 } // namespace display
52 50
53 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_H_ 51 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/display/screen_manager_ozone_external.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698