Merge lp:~mir-team/unity-system-compositor/development-branch into lp:unity-system-compositor

Proposed by Cemil Azizoglu
Status: Merged
Merged at revision: 139
Proposed branch: lp:~mir-team/unity-system-compositor/development-branch
Merge into: lp:unity-system-compositor
Diff against target: 79 lines (+34/-2)
2 files modified
debian/control (+1/-1)
src/system_compositor.cpp (+33/-1)
To merge this branch: bzr merge lp:~mir-team/unity-system-compositor/development-branch
Reviewer Review Type Date Requested Status
Mir development team Pending
Review via email: mp+223102@code.launchpad.net

Commit message

Updated for Mir 0.3.0 release.

Description of the change

Updated for Mir 0.3.0 release.

To post a comment you must log in.
141. By Alberto Aguirre

Add trust session apis to session and shell wrappers

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-06-03 15:54:39 +0000
3+++ debian/control 2014-06-18 14:48:54 +0000
4@@ -17,7 +17,7 @@
5 libglib2.0-dev,
6 libgles2-mesa-dev,
7 libmirclient-dev (>= 0.1.9),
8- libmirserver-dev (>= 0.2.0),
9+ libmirserver-dev (>= 0.3.0),
10 libprotobuf-dev,
11 pkg-config,
12 python:any (>= 2.7),
13
14=== modified file 'src/system_compositor.cpp'
15--- src/system_compositor.cpp 2014-06-03 15:48:25 +0000
16+++ src/system_compositor.cpp 2014-06-18 14:48:54 +0000
17@@ -27,8 +27,8 @@
18 #include <mir/frontend/shell.h>
19 #include <mir/scene/surface.h>
20 #include <mir/scene/surface_coordinator.h>
21+#include <mir/scene/session.h>
22 #include <mir/server_status_listener.h>
23-#include <mir/scene/session.h>
24 #include <mir/shell/focus_controller.h>
25 #include <mir/input/cursor_listener.h>
26
27@@ -101,6 +101,9 @@
28 std::shared_ptr<msc::Surface> default_surface() const override {return self->default_surface();}
29 void set_lifecycle_state(MirLifecycleState state) override {self->set_lifecycle_state(state);}
30
31+ void start_prompt_session() override { self->start_prompt_session(); }
32+ void stop_prompt_session() override { self->stop_prompt_session(); }
33+
34 private:
35 std::shared_ptr<msc::Session> const self;
36 SystemCompositorShell *shell;
37@@ -169,6 +172,9 @@
38 // mg::Renderable methods
39 std::unique_ptr<mg::Renderable> compositor_snapshot(void const* compositor_id) const override { return self->compositor_snapshot(compositor_id); }
40
41+ void set_cursor_image(std::shared_ptr<mg::CursorImage> const& image) override { self->set_cursor_image(image); }
42+ std::shared_ptr<mg::CursorImage> cursor_image() override { return self->cursor_image(); }
43+
44 private:
45 std::shared_ptr<msc::Surface> const self;
46 SystemCompositorSession *session;
47@@ -276,6 +282,32 @@
48 std::cerr << std::endl;
49 }
50
51+ std::shared_ptr<mf::PromptSession> start_prompt_session_for(
52+ std::shared_ptr<mf::Session> const& session,
53+ msc::PromptSessionCreationParameters const& params) override
54+ {
55+ return self->start_prompt_session_for(session, params);
56+ }
57+
58+ void add_prompt_provider_process_for(
59+ std::shared_ptr<mf::PromptSession> const& prompt_session,
60+ pid_t process_id) override
61+ {
62+ self->add_prompt_provider_process_for(prompt_session, process_id);
63+ }
64+
65+ void add_prompt_provider_for(
66+ std::shared_ptr<mf::PromptSession> const& prompt_session,
67+ std::shared_ptr<mf::Session> const& session) override
68+ {
69+ self->add_prompt_provider_for(prompt_session, session);
70+ }
71+
72+ void stop_prompt_session(std::shared_ptr<mf::PromptSession> const& prompt_session) override
73+ {
74+ self->stop_prompt_session(prompt_session);
75+ }
76+
77 private:
78 std::shared_ptr<mf::Session> open_session(
79 pid_t client_pid,

Subscribers

People subscribed via source and target branches