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

Side by Side Diff: services/ui/public/cpp/window_manager_delegate.h

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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
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 SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool janky) = 0; 102 bool janky) = 0;
103 103
104 // Called when a display is added. |window| is the root of the window tree for 104 // Called when a display is added. |window| is the root of the window tree for
105 // the specified display. 105 // the specified display.
106 virtual void OnWmNewDisplay(Window* window, 106 virtual void OnWmNewDisplay(Window* window,
107 const display::Display& display) = 0; 107 const display::Display& display) = 0;
108 108
109 // Called when a display is removed. |window| is the root of the display. 109 // Called when a display is removed. |window| is the root of the display.
110 virtual void OnWmDisplayRemoved(Window* window) = 0; 110 virtual void OnWmDisplayRemoved(Window* window) = 0;
111 111
112 // Called when a display is modified.
113 virtual void OnWmDisplayModified(const display::Display& display) = 0;
114
112 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); 115 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event);
113 116
114 virtual void OnWmPerformMoveLoop( 117 virtual void OnWmPerformMoveLoop(
115 Window* window, 118 Window* window,
116 ui::mojom::MoveLoopSource source, 119 ui::mojom::MoveLoopSource source,
117 const gfx::Point& cursor_location, 120 const gfx::Point& cursor_location,
118 const base::Callback<void(bool)>& on_done) = 0; 121 const base::Callback<void(bool)>& on_done) = 0;
119 122
120 virtual void OnWmCancelMoveLoop(Window* window) = 0; 123 virtual void OnWmCancelMoveLoop(Window* window) = 0;
121 124
122 protected: 125 protected:
123 virtual ~WindowManagerDelegate() {} 126 virtual ~WindowManagerDelegate() {}
124 }; 127 };
125 128
126 } // namespace ui 129 } // namespace ui
127 130
128 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 131 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.cc ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698