Mir
shell_report.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_REPORT_NULL_SHELL_REPORT_H
20 #define MIR_REPORT_NULL_SHELL_REPORT_H
21 
22 #include "mir/shell/shell_report.h"
23 
24 namespace mir
25 {
26 namespace logging
27 {
28 class Logger;
29 
31 {
32 public:
33  ShellReport(std::shared_ptr<mir::logging::Logger> const& log);
34 
35  void opened_session(scene::Session const& /*session*/) override;
36 
37  void closing_session(scene::Session const& /*session*/) override;
38 
39  void created_surface(
40  scene::Session const& /*session*/,
41  frontend::SurfaceId /*surface_id*/) override;
42 
43  void update_surface(
44  scene::Session const& /*session*/,
45  scene::Surface const& /*surface*/,
46  shell::SurfaceSpecification const& /*modifications*/) override;
47 
48  void update_surface(
49  scene::Session const& /*session*/,
50  scene::Surface const& /*surface*/,
51  MirSurfaceAttrib /*attrib*/, int /*value*/) override;
52 
53  void destroying_surface(
54  scene::Session const& /*session*/,
55  frontend::SurfaceId /*surface*/) override;
56 
58  scene::PromptSession const& /*prompt_session*/,
59  scene::Session const& /*session*/) override;
60 
62  scene::PromptSession const& /*prompt_session*/,
63  scene::Session const& /*session*/) override;
64 
66  scene::PromptSession const& /*prompt_session*/) override;
67 
68  void adding_display(geometry::Rectangle const& /*area*/) override;
69 
70  void removing_display(geometry::Rectangle const& /*area*/) override;
71 
72  void input_focus_set_to(
73  scene::Session const* /*focus_session*/,
74  scene::Surface const* /*focus_surface*/) override;
75 
76  void surfaces_raised(shell::SurfaceSet const& /*surfaces*/) override;
77 
78 private:
79  std::shared_ptr<mir::logging::Logger> const log;
80 };
81 }
82 }
83 
84 #endif //MIR_REPORT_NULL_SHELL_REPORT_H
void input_focus_set_to(scene::Session const *, scene::Surface const *) override
All things Mir.
Definition: atomic_callback.h:25
void opened_session(scene::Session const &) override
Definition: prompt_session.h:30
Definition: shell_report.h:30
void destroying_surface(scene::Session const &, frontend::SurfaceId) override
void started_prompt_session(scene::PromptSession const &, scene::Session const &) override
Definition: session.h:38
std::set< std::weak_ptr< scene::Surface >, std::owner_less< std::weak_ptr< scene::Surface >>> SurfaceSet
Definition: focus_controller.h:32
void closing_session(scene::Session const &) override
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:34
Definition: shell_report.h:38
Definition: rectangle.h:33
void adding_display(geometry::Rectangle const &) override
Specification of surface properties requested by client.
Definition: surface_specification.h:49
void removing_display(geometry::Rectangle const &) override
void update_surface(scene::Session const &, scene::Surface const &, shell::SurfaceSpecification const &) override
Definition: surface.h:47
void added_prompt_provider(scene::PromptSession const &, scene::Session const &) override
void stopping_prompt_session(scene::PromptSession const &) override
void surfaces_raised(shell::SurfaceSet const &) override
void created_surface(scene::Session const &, frontend::SurfaceId) override

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016