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

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

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment 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
« no previous file with comments | « ui/aura/mus/mus_types.h ('k') | ui/aura/mus/window_mus.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 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 19 matching lines...) Expand all
30 class Vector2d; 30 class Vector2d;
31 } 31 }
32 32
33 namespace ui { 33 namespace ui {
34 class Event; 34 class Event;
35 } 35 }
36 36
37 namespace aura { 37 namespace aura {
38 38
39 class Window; 39 class Window;
40 class WindowTreeHostMus;
40 41
41 // See the mojom with the same name for details on the functions in this 42 // See the mojom with the same name for details on the functions in this
42 // interface. 43 // interface.
43 class AURA_EXPORT WindowManagerClient { 44 class AURA_EXPORT WindowManagerClient {
44 public: 45 public:
45 virtual void SetFrameDecorationValues( 46 virtual void SetFrameDecorationValues(
46 ui::mojom::FrameDecorationValuesPtr values) = 0; 47 ui::mojom::FrameDecorationValuesPtr values) = 0;
47 virtual void SetNonClientCursor(Window* window, 48 virtual void SetNonClientCursor(Window* window,
48 ui::mojom::Cursor non_client_cursor) = 0; 49 ui::mojom::Cursor non_client_cursor) = 0;
49 50
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // of OnWmCreateTopLevelWindow(). 97 // of OnWmCreateTopLevelWindow().
97 virtual Window* OnWmCreateTopLevelWindow( 98 virtual Window* OnWmCreateTopLevelWindow(
98 std::map<std::string, std::vector<uint8_t>>* properties) = 0; 99 std::map<std::string, std::vector<uint8_t>>* properties) = 0;
99 100
100 // Called when a Mus client's jankiness changes. |windows| is the set of 101 // Called when a Mus client's jankiness changes. |windows| is the set of
101 // windows owned by the window manager in which the client is embedded. 102 // windows owned by the window manager in which the client is embedded.
102 virtual void OnWmClientJankinessChanged( 103 virtual void OnWmClientJankinessChanged(
103 const std::set<Window*>& client_windows, 104 const std::set<Window*>& client_windows,
104 bool janky) = 0; 105 bool janky) = 0;
105 106
106 // Called when a display is added. |window| is the root of the window tree for 107 // Called when a display is added. |window_tree_host| is the WindowTreeHost
107 // the specified display. 108 // for the new display.
108 virtual void OnWmNewDisplay(Window* window, 109 virtual void OnWmNewDisplay(
109 const display::Display& display) = 0; 110 std::unique_ptr<WindowTreeHostMus> window_tree_host,
111 const display::Display& display) = 0;
110 112
111 // Called when a display is removed. |window| is the root of the display. 113 // Called when a display is removed. |window| is the root of the display.
112 virtual void OnWmDisplayRemoved(Window* window) = 0; 114 virtual void OnWmDisplayRemoved(Window* window) = 0;
113 115
114 // Called when a display is modified. 116 // Called when a display is modified.
115 virtual void OnWmDisplayModified(const display::Display& display) = 0; 117 virtual void OnWmDisplayModified(const display::Display& display) = 0;
116 118
117 virtual ui::mojom::EventResult OnAccelerator(uint32_t id, 119 virtual ui::mojom::EventResult OnAccelerator(uint32_t id,
118 const ui::Event& event); 120 const ui::Event& event);
119 121
120 virtual void OnWmPerformMoveLoop( 122 virtual void OnWmPerformMoveLoop(
121 Window* window, 123 Window* window,
122 ui::mojom::MoveLoopSource source, 124 ui::mojom::MoveLoopSource source,
123 const gfx::Point& cursor_location, 125 const gfx::Point& cursor_location,
124 const base::Callback<void(bool)>& on_done) = 0; 126 const base::Callback<void(bool)>& on_done) = 0;
125 127
126 virtual void OnWmCancelMoveLoop(Window* window) = 0; 128 virtual void OnWmCancelMoveLoop(Window* window) = 0;
127 129
128 protected: 130 protected:
129 virtual ~WindowManagerDelegate() {} 131 virtual ~WindowManagerDelegate() {}
130 }; 132 };
131 133
132 } // namespace ui 134 } // namespace ui
133 135
134 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 136 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/mus_types.h ('k') | ui/aura/mus/window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698