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

Side by Side Diff: ui/aura/mus/window_manager_delegate.h

Issue 2515233004: Make OnWmDisplayRemoved() take a WindowTreeHost (Closed)
Patch Set: Created 4 years 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 | ui/aura/mus/window_tree_client.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void OnWmClientJankinessChanged( 106 virtual void OnWmClientJankinessChanged(
107 const std::set<Window*>& client_windows, 107 const std::set<Window*>& client_windows,
108 bool janky) = 0; 108 bool janky) = 0;
109 109
110 // Called when a display is added. |window_tree_host| is the WindowTreeHost 110 // Called when a display is added. |window_tree_host| is the WindowTreeHost
111 // for the new display. 111 // for the new display.
112 virtual void OnWmNewDisplay( 112 virtual void OnWmNewDisplay(
113 std::unique_ptr<WindowTreeHostMus> window_tree_host, 113 std::unique_ptr<WindowTreeHostMus> window_tree_host,
114 const display::Display& display) = 0; 114 const display::Display& display) = 0;
115 115
116 // Called when a display is removed. |window| is the root of the display. 116 // Called when a display is removed. |window_tree_host| is the WindowTreeHost
117 virtual void OnWmDisplayRemoved(Window* window) = 0; 117 // for the display.
118 virtual void OnWmDisplayRemoved(WindowTreeHostMus* window_tree_host) = 0;
118 119
119 // Called when a display is modified. 120 // Called when a display is modified.
120 virtual void OnWmDisplayModified(const display::Display& display) = 0; 121 virtual void OnWmDisplayModified(const display::Display& display) = 0;
121 122
122 virtual ui::mojom::EventResult OnAccelerator(uint32_t id, 123 virtual ui::mojom::EventResult OnAccelerator(uint32_t id,
123 const ui::Event& event); 124 const ui::Event& event);
124 125
125 virtual void OnWmPerformMoveLoop( 126 virtual void OnWmPerformMoveLoop(
126 Window* window, 127 Window* window,
127 ui::mojom::MoveLoopSource source, 128 ui::mojom::MoveLoopSource source,
128 const gfx::Point& cursor_location, 129 const gfx::Point& cursor_location,
129 const base::Callback<void(bool)>& on_done) = 0; 130 const base::Callback<void(bool)>& on_done) = 0;
130 131
131 virtual void OnWmCancelMoveLoop(Window* window) = 0; 132 virtual void OnWmCancelMoveLoop(Window* window) = 0;
132 133
133 protected: 134 protected:
134 virtual ~WindowManagerDelegate() {} 135 virtual ~WindowManagerDelegate() {}
135 }; 136 };
136 137
137 } // namespace ui 138 } // namespace ui
138 139
139 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 140 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698