Mir

Merge lp:~alan-griffiths/mir/remove-PlacementStrategy into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 2694
Proposed branch: lp:~alan-griffiths/mir/remove-PlacementStrategy
Merge into: lp:mir
Diff against target: 531 lines (+62/-246)
13 files modified
playground/demo-shell/CMakeLists.txt (+0/-1)
playground/demo-shell/default_placement_strategy.cpp (+0/-58)
playground/demo-shell/default_placement_strategy.h (+0/-55)
playground/demo-shell/default_window_manager.cpp (+22/-5)
playground/demo-shell/default_window_manager.h (+4/-4)
playground/demo-shell/demo_shell.cpp (+1/-11)
src/include/server/mir/scene/placement_strategy.h (+0/-45)
tests/acceptance-tests/throwback/test_client_cursor_api.cpp (+4/-36)
tests/include/mir_test_framework/declarative_placement_window_manage_policy.h (+18/-20)
tests/integration-tests/test_session.cpp (+0/-1)
tests/mir_test_framework/CMakeLists.txt (+1/-1)
tests/mir_test_framework/declarative_placement_window_manage_policy.cpp (+12/-8)
tests/unit-tests/scene/test_surface_controller.cpp (+0/-1)
To merge this branch: bzr merge lp:~alan-griffiths/mir/remove-PlacementStrategy
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+262607@code.launchpad.net

Commit message

scene, tests, playground: remove PlacementStrategy hierarchy

Description of the change

scene, tests, playground: remove PlacementStrategy hierarchy

There were two isolated uses of this strategy interface. By moving the two implementations to the two points of use we can get rid of the whole abstraction.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fields of red... More pleasant than it sounds.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'playground/demo-shell/CMakeLists.txt'
2--- playground/demo-shell/CMakeLists.txt 2015-06-17 15:19:52 +0000
3+++ playground/demo-shell/CMakeLists.txt 2015-06-22 16:27:03 +0000
4@@ -3,7 +3,6 @@
5 demo_renderer.cpp
6 window_manager.cpp
7 default_window_manager.cpp
8- default_placement_strategy.cpp
9 )
10
11 add_subdirectory(typo)
12
13=== removed file 'playground/demo-shell/default_placement_strategy.cpp'
14--- playground/demo-shell/default_placement_strategy.cpp 2015-06-17 15:26:26 +0000
15+++ playground/demo-shell/default_placement_strategy.cpp 1970-01-01 00:00:00 +0000
16@@ -1,58 +0,0 @@
17-/*
18- * Copyright © 2013 Canonical Ltd.
19- *
20- * This program is free software: you can redistribute it and/or modify it
21- * under the terms of the GNU General Public License version 3,
22- * as published by the Free Software Foundation.
23- *
24- * This program is distributed in the hope that it will be useful,
25- * but WITHOUT ANY WARRANTY; without even the implied warranty of
26- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27- * GNU General Public License for more details.
28- *
29- * You should have received a copy of the GNU General Public License
30- * along with this program. If not, see <http://www.gnu.org/licenses/>.
31- *
32- * Authored by: Robert Carr <robert.carr@canonical.com>
33- */
34-
35-#include "default_placement_strategy.h"
36-#include "mir/scene/surface_creation_parameters.h"
37-#include "mir/shell/display_layout.h"
38-#include "mir/geometry/rectangle.h"
39-
40-#include "mir_toolkit/client_types.h"
41-
42-#include <algorithm>
43-
44-namespace me = mir::examples;
45-namespace ms = mir::scene;
46-namespace msh = mir::shell;
47-namespace geom = mir::geometry;
48-
49-me::DefaultPlacementStrategy::DefaultPlacementStrategy(
50- std::shared_ptr<msh::DisplayLayout> const& display_layout)
51- : display_layout(display_layout)
52-{
53-}
54-
55-ms::SurfaceCreationParameters me::DefaultPlacementStrategy::place(
56- ms::Session const& /* session */,
57- ms::SurfaceCreationParameters const& request_parameters)
58-{
59- mir::graphics::DisplayConfigurationOutputId const output_id_invalid{
60- mir_display_output_id_invalid};
61- auto placed_parameters = request_parameters;
62-
63- geom::Rectangle rect{request_parameters.top_left, request_parameters.size};
64-
65- if (request_parameters.output_id != output_id_invalid)
66- {
67- display_layout->place_in_output(request_parameters.output_id, rect);
68- }
69-
70- placed_parameters.top_left = rect.top_left;
71- placed_parameters.size = rect.size;
72-
73- return placed_parameters;
74-}
75
76=== removed file 'playground/demo-shell/default_placement_strategy.h'
77--- playground/demo-shell/default_placement_strategy.h 2015-06-17 15:26:26 +0000
78+++ playground/demo-shell/default_placement_strategy.h 1970-01-01 00:00:00 +0000
79@@ -1,55 +0,0 @@
80-/*
81- * Copyright © 2013 Canonical Ltd.
82- *
83- * This program is free software: you can redistribute it and/or modify it
84- * under the terms of the GNU General Public License version 3,
85- * as published by the Free Software Foundation.
86- *
87- * This program is distributed in the hope that it will be useful,
88- * but WITHOUT ANY WARRANTY; without even the implied warranty of
89- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
90- * GNU General Public License for more details.
91- *
92- * You should have received a copy of the GNU General Public License
93- * along with this program. If not, see <http://www.gnu.org/licenses/>.
94- *
95- * Authored by: Robert Carr <robert.carr@canonical.com>
96- */
97-
98-#ifndef MIR_EXAMPLES_DEFAULT_PLACEMENT_STRATEGY_H_
99-#define MIR_EXAMPLES_DEFAULT_PLACEMENT_STRATEGY_H_
100-
101-#include "mir/scene/placement_strategy.h"
102-
103-#include <memory>
104-
105-namespace mir
106-{
107-namespace shell
108-{
109-class DisplayLayout;
110-}
111-
112-namespace examples
113-{
114-class DefaultPlacementStrategy : public scene::PlacementStrategy
115-{
116-public:
117- explicit DefaultPlacementStrategy(
118- std::shared_ptr<shell::DisplayLayout> const& display_layout);
119- virtual ~DefaultPlacementStrategy() {}
120-
121- virtual scene::SurfaceCreationParameters place(scene::Session const& session, scene::SurfaceCreationParameters const& request_parameters);
122-
123-protected:
124- DefaultPlacementStrategy(DefaultPlacementStrategy const&) = delete;
125- DefaultPlacementStrategy& operator=(DefaultPlacementStrategy const&) = delete;
126-
127-private:
128- std::shared_ptr<shell::DisplayLayout> const display_layout;
129-};
130-
131-}
132-} // namespace mir
133-
134-#endif // MIR_SHELL_DEFAULT_PLACEMENT_STRATEGY_H_
135
136=== modified file 'playground/demo-shell/default_window_manager.cpp'
137--- playground/demo-shell/default_window_manager.cpp 2015-06-17 14:41:13 +0000
138+++ playground/demo-shell/default_window_manager.cpp 2015-06-22 16:27:03 +0000
139@@ -18,26 +18,29 @@
140
141 #include "default_window_manager.h"
142
143-#include "mir/scene/placement_strategy.h"
144 #include "mir/scene/session.h"
145 #include "mir/scene/session_coordinator.h"
146 #include "mir/scene/surface.h"
147 #include "mir/scene/surface_creation_parameters.h"
148+#include "mir/shell/display_layout.h"
149 #include "mir/shell/focus_controller.h"
150 #include "mir/shell/surface_ready_observer.h"
151 #include "mir/shell/surface_specification.h"
152
153+#include "mir_toolkit/client_types.h"
154+
155 namespace mf = mir::frontend;
156 namespace ms = mir::scene;
157 namespace msh = mir::shell;
158 namespace me = mir::examples;
159+namespace geom = mir::geometry;
160
161 me::DefaultWindowManager::DefaultWindowManager(
162 msh::FocusController* focus_controller,
163- std::shared_ptr<scene::PlacementStrategy> const& placement_strategy,
164+ std::shared_ptr<shell::DisplayLayout> const& display_layout,
165 std::shared_ptr<scene::SessionCoordinator> const& session_coordinator) :
166 focus_controller{focus_controller},
167- placement_strategy{placement_strategy},
168+ display_layout{display_layout},
169 session_coordinator{session_coordinator}
170 {
171 }
172@@ -58,11 +61,25 @@
173
174 auto me::DefaultWindowManager::add_surface(
175 std::shared_ptr<scene::Session> const& session,
176- scene::SurfaceCreationParameters const& params,
177+ scene::SurfaceCreationParameters const& request_parameters,
178 std::function<frontend::SurfaceId(std::shared_ptr<scene::Session> const& session, scene::SurfaceCreationParameters const& params)> const& build)
179 -> frontend::SurfaceId
180 {
181- auto const result = build(session, placement_strategy->place(*session, params));
182+ mir::graphics::DisplayConfigurationOutputId const output_id_invalid{
183+ mir_display_output_id_invalid};
184+ auto placed_parameters = request_parameters;
185+
186+ geom::Rectangle rect{request_parameters.top_left, request_parameters.size};
187+
188+ if (request_parameters.output_id != output_id_invalid)
189+ {
190+ display_layout->place_in_output(request_parameters.output_id, rect);
191+ }
192+
193+ placed_parameters.top_left = rect.top_left;
194+ placed_parameters.size = rect.size;
195+
196+ auto const result = build(session, placed_parameters);
197 auto const surface = session->surface(result);
198
199 surface->add_observer(std::make_shared<msh::SurfaceReadyObserver>(
200
201=== modified file 'playground/demo-shell/default_window_manager.h'
202--- playground/demo-shell/default_window_manager.h 2015-06-17 14:41:13 +0000
203+++ playground/demo-shell/default_window_manager.h 2015-06-22 16:27:03 +0000
204@@ -23,9 +23,9 @@
205
206 namespace mir
207 {
208-namespace scene { class PlacementStrategy; class SessionCoordinator; }
209+namespace scene { class SessionCoordinator; }
210
211-namespace shell { class FocusController; }
212+namespace shell { class FocusController; class DisplayLayout; }
213
214 namespace examples
215 {
216@@ -33,7 +33,7 @@
217 {
218 public:
219 explicit DefaultWindowManager(shell::FocusController* focus_controller,
220- std::shared_ptr<scene::PlacementStrategy> const& placement_strategy,
221+ std::shared_ptr<shell::DisplayLayout> const& display_layout,
222 std::shared_ptr<scene::SessionCoordinator> const& session_coordinator);
223
224 void add_session(std::shared_ptr<scene::Session> const& session) override;
225@@ -72,7 +72,7 @@
226
227 private:
228 shell::FocusController* const focus_controller;
229- std::shared_ptr<scene::PlacementStrategy> const placement_strategy;
230+ std::shared_ptr<shell::DisplayLayout> const display_layout;
231 std::shared_ptr<scene::SessionCoordinator> const session_coordinator;
232 };
233 }
234
235=== modified file 'playground/demo-shell/demo_shell.cpp'
236--- playground/demo-shell/demo_shell.cpp 2015-06-17 15:26:26 +0000
237+++ playground/demo-shell/demo_shell.cpp 2015-06-22 16:27:03 +0000
238@@ -30,7 +30,6 @@
239 #include "mir/compositor/renderer_factory.h"
240 #include "mir/options/option.h"
241 #include "default_window_manager.h"
242-#include "default_placement_strategy.h"
243 #include "server_example_tiling_window_manager.h"
244 #include "mir/shell/canonical_window_manager.h"
245 #include "server_example_host_lifecycle_event_listener.h"
246@@ -128,7 +127,7 @@
247
248 return std::make_shared<DefaultWindowManager>(
249 focus_controller,
250- the_placement_strategy(),
251+ the_shell_display_layout(),
252 the_session_coordinator());
253 };
254 }
255@@ -142,15 +141,6 @@
256 });
257 }
258
259- std::shared_ptr<ms::PlacementStrategy> the_placement_strategy()
260- {
261- return placement_strategy([this]
262- {
263- return std::make_shared<DefaultPlacementStrategy>(
264- the_shell_display_layout());
265- });
266- }
267-
268 private:
269 std::vector<std::shared_ptr<mi::EventFilter>> const filter_list;
270 };
271
272=== removed file 'src/include/server/mir/scene/placement_strategy.h'
273--- src/include/server/mir/scene/placement_strategy.h 2015-06-17 05:20:42 +0000
274+++ src/include/server/mir/scene/placement_strategy.h 1970-01-01 00:00:00 +0000
275@@ -1,45 +0,0 @@
276-/*
277- * Copyright © 2013-2014 Canonical Ltd.
278- *
279- * This program is free software: you can redistribute it and/or modify it
280- * under the terms of the GNU General Public License version 3,
281- * as published by the Free Software Foundation.
282- *
283- * This program is distributed in the hope that it will be useful,
284- * but WITHOUT ANY WARRANTY; without even the implied warranty of
285- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
286- * GNU General Public License for more details.
287- *
288- * You should have received a copy of the GNU General Public License
289- * along with this program. If not, see <http://www.gnu.org/licenses/>.
290- *
291- * Authored by: Robert Carr <robert.carr@canonical.com>
292- */
293-
294-#ifndef MIR_SCENE_PLACEMENT_STRATEGY_H_
295-#define MIR_SCENE_PLACEMENT_STRATEGY_H_
296-
297-namespace mir
298-{
299-namespace scene
300-{
301-class Session;
302-struct SurfaceCreationParameters;
303-
304-// TODO Can be subsumed by DefaultShell
305-class PlacementStrategy
306-{
307-public:
308- virtual ~PlacementStrategy() = default;
309-
310- virtual SurfaceCreationParameters place(Session const& session, SurfaceCreationParameters const& request_parameters) = 0;
311-
312-protected:
313- PlacementStrategy() = default;
314- PlacementStrategy(PlacementStrategy const&) = delete;
315- PlacementStrategy& operator=(PlacementStrategy const&) = delete;
316-};
317-}
318-} // namespace mir
319-
320-#endif // MIR_SCENE_PLACEMENT_STRATEGY_H_
321
322=== modified file 'tests/acceptance-tests/throwback/test_client_cursor_api.cpp'
323--- tests/acceptance-tests/throwback/test_client_cursor_api.cpp 2015-06-17 15:19:52 +0000
324+++ tests/acceptance-tests/throwback/test_client_cursor_api.cpp 2015-06-22 16:27:03 +0000
325@@ -20,13 +20,10 @@
326 #include "mir/graphics/cursor.h"
327 #include "mir/graphics/cursor_image.h"
328 #include "mir/input/cursor_images.h"
329-#include "mir/shell/canonical_window_manager.h"
330-#include "mir/scene/placement_strategy.h"
331-
332
333 #include "mir_test_framework/in_process_server.h"
334 #include "mir_test_framework/fake_event_hub_server_configuration.h"
335-#include "mir_test_framework/declarative_placement_strategy.h"
336+#include "mir_test_framework/declarative_placement_window_manage_policy.h"
337 #include "mir_test_framework/using_stub_client_platform.h"
338 #include "mir_test_framework/headless_nested_server_runner.h"
339 #include "mir_test_doubles/mock_egl.h"
340@@ -215,47 +212,18 @@
341 std::string const cursor_name;
342 };
343
344-class PlacementWindowManagerPolicy : public msh::CanonicalWindowManagerPolicy
345-{
346-public:
347- PlacementWindowManagerPolicy(
348- Tools* const tools,
349- std::shared_ptr<ms::PlacementStrategy> const& placement_strategy,
350- std::shared_ptr<msh::DisplayLayout> const& display_layout) :
351- msh::CanonicalWindowManagerPolicy{tools, display_layout},
352- placement_strategy{placement_strategy}
353- {}
354-
355- auto handle_place_new_surface(
356- std::shared_ptr<ms::Session> const& session,
357- ms::SurfaceCreationParameters const& request_parameters)
358- -> ms::SurfaceCreationParameters
359- {
360- return placement_strategy->place(*session, request_parameters);
361- }
362-
363-
364-private:
365- std::shared_ptr<ms::PlacementStrategy> const placement_strategy;
366-};
367-
368 struct TestServerConfiguration : mtf::FakeEventHubServerConfiguration
369 {
370- std::shared_ptr<mir::scene::PlacementStrategy> the_placement_strategy()
371- {
372- return std::make_shared<mtf::DeclarativePlacementStrategy>(
373- client_geometries, client_depths);
374- }
375-
376 auto the_window_manager_builder() -> msh::WindowManagerBuilder override
377 {
378- using PlacementWindowManager = msh::BasicWindowManager<PlacementWindowManagerPolicy, msh::CanonicalSessionInfo, msh::CanonicalSurfaceInfo>;
379+ using PlacementWindowManager = msh::BasicWindowManager<mtf::DeclarativePlacementWindowManagerPolicy, msh::CanonicalSessionInfo, msh::CanonicalSurfaceInfo>;
380
381 return [&](msh::FocusController* focus_controller)
382 {
383 return std::make_shared<PlacementWindowManager>(
384 focus_controller,
385- the_placement_strategy(),
386+ client_geometries,
387+ client_depths,
388 the_shell_display_layout());
389 };
390 }
391
392=== renamed file 'tests/include/mir_test_framework/declarative_placement_strategy.h' => 'tests/include/mir_test_framework/declarative_placement_window_manage_policy.h'
393--- tests/include/mir_test_framework/declarative_placement_strategy.h 2015-06-17 15:19:52 +0000
394+++ tests/include/mir_test_framework/declarative_placement_window_manage_policy.h 2015-06-22 16:27:03 +0000
395@@ -16,10 +16,10 @@
396 * Authored by: Robert Carr <robert.carr@canonical.com>
397 */
398
399-#ifndef MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_STRATEGY_H_
400-#define MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_STRATEGY_H_
401+#ifndef MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_WINDOW_MANAGER_POLICY_H_
402+#define MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_WINDOW_MANAGER_POLICY_H_
403
404-#include "mir/scene/placement_strategy.h"
405+#include "mir/shell/canonical_window_manager.h"
406 #include "mir/geometry/rectangle.h"
407 #include "mir/scene/depth_id.h"
408
409@@ -32,31 +32,29 @@
410 typedef std::map<std::string, mir::geometry::Rectangle> SurfaceGeometries;
411 typedef std::map<std::string, mir::scene::DepthId> SurfaceDepths;
412
413-/// DeclarativePlacementStrategy is a test utility server component for specifying
414+/// DeclarativePlacementWindowManagerPolicy is a test utility server component for specifying
415 /// a static list of surface geometries and relative depths. Used, for example,
416 /// in input tests where it is necessary to set up scenarios depending on
417 /// multiple surfaces geometry and stacking.
418-class DeclarativePlacementStrategy : public mir::scene::PlacementStrategy
419+class DeclarativePlacementWindowManagerPolicy : public mir::shell::CanonicalWindowManagerPolicy
420 {
421- public:
422- // Placement requests will be passed through to default strategy, and then overriden if the surface appears
423- // in the geometry or depth map. This allows for the convenience of leaving some surfaces geometries unspecified
424- // and receiving the default behavior.
425- DeclarativePlacementStrategy(
426- SurfaceGeometries const& positions_by_name, SurfaceDepths const& depths_by_name);
427-
428- virtual ~DeclarativePlacementStrategy() = default;
429-
430- mir::scene::SurfaceCreationParameters place(mir::scene::Session const& session, mir::scene::SurfaceCreationParameters const& request_parameters) override;
431-
432-protected:
433- DeclarativePlacementStrategy(const DeclarativePlacementStrategy&) = delete;
434- DeclarativePlacementStrategy& operator=(const DeclarativePlacementStrategy&) = delete;
435+public:
436+ DeclarativePlacementWindowManagerPolicy(
437+ Tools* const tools,
438+ SurfaceGeometries const& positions_by_name,
439+ SurfaceDepths const& depths_by_name,
440+ std::shared_ptr<mir::shell::DisplayLayout> const& display_layout);
441+
442+ auto handle_place_new_surface(
443+ std::shared_ptr<mir::scene::Session> const& session,
444+ mir::scene::SurfaceCreationParameters const& request_parameters)
445+ -> mir::scene::SurfaceCreationParameters;
446
447 private:
448 SurfaceGeometries const& surface_geometries_by_name;
449 SurfaceDepths const& surface_depths_by_name;
450 };
451+
452 }
453
454-#endif // MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_STRATEGY_H_
455+#endif // MIR_TEST_FRAMEWORK_DECLARATIVE_PLACEMENT_WINDOW_MANAGER_POLICY_H_
456
457=== modified file 'tests/integration-tests/test_session.cpp'
458--- tests/integration-tests/test_session.cpp 2015-06-17 05:20:42 +0000
459+++ tests/integration-tests/test_session.cpp 2015-06-22 16:27:03 +0000
460@@ -21,7 +21,6 @@
461 #include "mir/compositor/compositor.h"
462 #include "src/server/scene/application_session.h"
463 #include "src/server/scene/pixel_buffer.h"
464-#include "mir/scene/placement_strategy.h"
465 #include "mir/scene/surface.h"
466 #include "mir/scene/surface_creation_parameters.h"
467 #include "mir/scene/null_session_listener.h"
468
469=== modified file 'tests/mir_test_framework/CMakeLists.txt'
470--- tests/mir_test_framework/CMakeLists.txt 2015-06-17 05:20:42 +0000
471+++ tests/mir_test_framework/CMakeLists.txt 2015-06-22 16:27:03 +0000
472@@ -41,7 +41,7 @@
473 stub_client_platform_factory.cpp
474 stub_server_platform_factory.cpp
475 udev_environment.cpp
476- declarative_placement_strategy.cpp
477+ declarative_placement_window_manage_policy.cpp
478 fake_event_hub_server_configuration.cpp
479 any_surface.cpp
480 headless_nested_server_runner.cpp
481
482=== renamed file 'tests/mir_test_framework/declarative_placement_strategy.cpp' => 'tests/mir_test_framework/declarative_placement_window_manage_policy.cpp'
483--- tests/mir_test_framework/declarative_placement_strategy.cpp 2015-06-17 15:26:26 +0000
484+++ tests/mir_test_framework/declarative_placement_window_manage_policy.cpp 2015-06-22 16:27:03 +0000
485@@ -16,23 +16,27 @@
486 * Authored by: Robert Carr <robert.carr@canonical.com>
487 */
488
489+#include "mir_test_framework/declarative_placement_window_manage_policy.h"
490 #include "mir/scene/surface_creation_parameters.h"
491
492-#include "mir_test_framework/declarative_placement_strategy.h"
493-
494 namespace ms = mir::scene;
495
496 namespace mtf = mir_test_framework;
497
498-mtf::DeclarativePlacementStrategy::DeclarativePlacementStrategy(
499- SurfaceGeometries const& positions,
500- SurfaceDepths const& depths) :
501- surface_geometries_by_name(positions),
502- surface_depths_by_name(depths)
503+mtf::DeclarativePlacementWindowManagerPolicy::DeclarativePlacementWindowManagerPolicy(
504+ Tools* const tools,
505+ SurfaceGeometries const& positions_by_name,
506+ SurfaceDepths const& depths_by_name,
507+ std::shared_ptr<mir::shell::DisplayLayout> const& display_layout) :
508+ mir::shell::CanonicalWindowManagerPolicy{tools, display_layout},
509+ surface_geometries_by_name{positions_by_name},
510+ surface_depths_by_name{depths_by_name}
511 {
512 }
513
514-ms::SurfaceCreationParameters mtf::DeclarativePlacementStrategy::place(ms::Session const& /*session*/, ms::SurfaceCreationParameters const& request_parameters)
515+ms::SurfaceCreationParameters mtf::DeclarativePlacementWindowManagerPolicy::handle_place_new_surface(
516+ std::shared_ptr<mir::scene::Session> const& /*session*/,
517+ ms::SurfaceCreationParameters const& request_parameters)
518 {
519 auto placed = request_parameters;
520
521
522=== modified file 'tests/unit-tests/scene/test_surface_controller.cpp'
523--- tests/unit-tests/scene/test_surface_controller.cpp 2015-06-17 05:20:42 +0000
524+++ tests/unit-tests/scene/test_surface_controller.cpp 2015-06-22 16:27:03 +0000
525@@ -19,7 +19,6 @@
526 #include "src/server/scene/surface_controller.h"
527 #include "src/server/scene/surface_stack_model.h"
528 #include "mir/scene/surface_factory.h"
529-#include "mir/scene/placement_strategy.h"
530 #include "mir/scene/surface_creation_parameters.h"
531 #include "mir_test_doubles/stub_scene_session.h"
532

Subscribers

People subscribed via source and target branches