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

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

Issue 2500973002: Converts test_wm to use aura (Closed)
Patch Set: feedback 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void OnWmClientJankinessChanged( 103 virtual void OnWmClientJankinessChanged(
104 const std::set<Window*>& client_windows, 104 const std::set<Window*>& client_windows,
105 bool janky) = 0; 105 bool janky) = 0;
106 106
107 // Called when a display is added. |window_tree_host| is the WindowTreeHost 107 // Called when a display is added. |window_tree_host| is the WindowTreeHost
108 // for the new display. 108 // for the new display.
109 virtual void OnWmNewDisplay( 109 virtual void OnWmNewDisplay(
110 std::unique_ptr<WindowTreeHostMus> window_tree_host, 110 std::unique_ptr<WindowTreeHostMus> window_tree_host,
111 const display::Display& display) = 0; 111 const display::Display& display) = 0;
112 112
113 // Called when a display is removed. |window| is the root of the display. 113 // Called when a display is removed. |window_tree_host| is the WindowTreeHost
114 virtual void OnWmDisplayRemoved(Window* window) = 0; 114 // for the display.
115 virtual void OnWmDisplayRemoved(WindowTreeHostMus* window_tree_host) = 0;
115 116
116 // Called when a display is modified. 117 // Called when a display is modified.
117 virtual void OnWmDisplayModified(const display::Display& display) = 0; 118 virtual void OnWmDisplayModified(const display::Display& display) = 0;
118 119
119 virtual ui::mojom::EventResult OnAccelerator(uint32_t id, 120 virtual ui::mojom::EventResult OnAccelerator(uint32_t id,
120 const ui::Event& event); 121 const ui::Event& event);
121 122
122 virtual void OnWmPerformMoveLoop( 123 virtual void OnWmPerformMoveLoop(
123 Window* window, 124 Window* window,
124 ui::mojom::MoveLoopSource source, 125 ui::mojom::MoveLoopSource source,
125 const gfx::Point& cursor_location, 126 const gfx::Point& cursor_location,
126 const base::Callback<void(bool)>& on_done) = 0; 127 const base::Callback<void(bool)>& on_done) = 0;
127 128
128 virtual void OnWmCancelMoveLoop(Window* window) = 0; 129 virtual void OnWmCancelMoveLoop(Window* window) = 0;
129 130
130 protected: 131 protected:
131 virtual ~WindowManagerDelegate() {} 132 virtual ~WindowManagerDelegate() {}
132 }; 133 };
133 134
134 } // namespace ui 135 } // namespace ui
135 136
136 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 137 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698