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

Side by Side Diff: ash/mus/display_synchronizer.h

Issue 2904993003: chromeos: changes how DisplayManagerObservers are notified (Closed)
Patch Set: cleanup Created 3 years, 6 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 | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/mus/display_synchronizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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 ASH_MUS_DISPLAY_SYNCHRONIZER_H_
6 #define ASH_MUS_DISPLAY_SYNCHRONIZER_H_
7
8 #include "ash/display/window_tree_host_manager.h"
9 #include "base/macros.h"
10
11 namespace aura {
12 class WindowManagerClient;
13 }
14
15 namespace ash {
16
17 // DisplaySynchronizer keeps the display state in mus in sync with ash's display
18 // state. As ash controls the overall display state this synchronization is one
19 // way (from ash to mus).
20 class DisplaySynchronizer : public ash::WindowTreeHostManager::Observer {
21 public:
22 explicit DisplaySynchronizer(
23 aura::WindowManagerClient* window_manager_client);
24 ~DisplaySynchronizer() override;
25
26 private:
27 void SendDisplayConfigurationToServer();
28
29 // WindowTreeHostManager::Observer:
30 void OnDisplaysInitialized() override;
31 void OnDisplayConfigurationChanged() override;
32
33 aura::WindowManagerClient* window_manager_client_;
34
35 DISALLOW_COPY_AND_ASSIGN(DisplaySynchronizer);
36 };
37
38 } // namespace ash
39
40 #endif // ASH_MUS_DISPLAY_SYNCHRONIZER_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/mus/display_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698