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

Side by Side Diff: ash/display/mirror_window_controller.h

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « ash/display/display_util.cc ('k') | ash/display/mirror_window_controller.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_
6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ 6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 12 matching lines...) Expand all
23 23
24 namespace aura { 24 namespace aura {
25 class Window; 25 class Window;
26 namespace client { 26 namespace client {
27 class ScreenPositionClient; 27 class ScreenPositionClient;
28 } 28 }
29 } 29 }
30 30
31 namespace display { 31 namespace display {
32 class Display; 32 class Display;
33 class ManagedDisplayInfo;
33 } 34 }
34 35
35 namespace ui { 36 namespace ui {
36 class Reflector; 37 class Reflector;
37 } 38 }
38 39
39 namespace ash { 40 namespace ash {
40 class AshWindowTreeHost; 41 class AshWindowTreeHost;
41 class DisplayInfo;
42 class RootWindowTransformer; 42 class RootWindowTransformer;
43 43
44 namespace test { 44 namespace test {
45 class MirrorWindowTestApi; 45 class MirrorWindowTestApi;
46 } 46 }
47 47
48 // An object that copies the content of the primary root window to a 48 // An object that copies the content of the primary root window to a
49 // mirror window. This also draws a mouse cursor as the mouse cursor 49 // mirror window. This also draws a mouse cursor as the mouse cursor
50 // is typically drawn by the window system. 50 // is typically drawn by the window system.
51 class ASH_EXPORT MirrorWindowController : public aura::WindowTreeHostObserver { 51 class ASH_EXPORT MirrorWindowController : public aura::WindowTreeHostObserver {
52 public: 52 public:
53 MirrorWindowController(); 53 MirrorWindowController();
54 ~MirrorWindowController() override; 54 ~MirrorWindowController() override;
55 55
56 // Updates the root window's bounds using |display_info|. 56 // Updates the root window's bounds using |display_info|.
57 // Creates the new root window if one doesn't exist. 57 // Creates the new root window if one doesn't exist.
58 void UpdateWindow(const std::vector<DisplayInfo>& display_info); 58 void UpdateWindow(
59 const std::vector<display::ManagedDisplayInfo>& display_info);
59 60
60 // Same as above, but using existing display info 61 // Same as above, but using existing display info
61 // for the mirrored display. 62 // for the mirrored display.
62 void UpdateWindow(); 63 void UpdateWindow();
63 64
64 // Close the mirror window if they're not necessary any longer. 65 // Close the mirror window if they're not necessary any longer.
65 void CloseIfNotNecessary(); 66 void CloseIfNotNecessary();
66 67
67 // aura::WindowTreeHostObserver overrides: 68 // aura::WindowTreeHostObserver overrides:
68 void OnHostResized(const aura::WindowTreeHost* host) override; 69 void OnHostResized(const aura::WindowTreeHost* host) override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 102 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
102 103
103 std::unique_ptr<ui::Reflector> reflector_; 104 std::unique_ptr<ui::Reflector> reflector_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); 106 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController);
106 }; 107 };
107 108
108 } // namespace ash 109 } // namespace ash
109 110
110 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ 111 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/display_util.cc ('k') | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698