~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to include/server/mir/scene/surface_factory.h

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2014-04-01 17:40:49 UTC
  • mfrom: (1513.3.10 mir1)
  • Revision ID: tarmac-20140401174049-vj1jmakptw9v31qg
scene: Simplify BasicSurface creation by separating out an initial cut of SurfaceObserver.

Approved by Andreas Pokorny, Alexandros Frantzis, Gerry Boland, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef MIR_SCENE_SURFACE_FACTORY_H_
20
20
#define MIR_SCENE_SURFACE_FACTORY_H_
21
21
 
22
 
#include "mir/frontend/surface_id.h"
23
22
#include "mir/shell/surface_creation_parameters.h"
24
23
#include <memory>
25
 
#include <functional>
26
24
 
27
25
namespace mir
28
26
{
29
 
namespace frontend { class EventSink; }
30
27
namespace scene
31
28
{
32
29
class Surface;
38
35
    virtual ~SurfaceFactory() = default;
39
36
 
40
37
    virtual std::shared_ptr<Surface> create_surface(
41
 
        frontend::SurfaceId id,
42
 
        shell::SurfaceCreationParameters const& params,
43
 
        std::shared_ptr<frontend::EventSink> const& event_sink) = 0;
 
38
        shell::SurfaceCreationParameters const& params) = 0;
 
39
 
44
40
private:
45
41
    SurfaceFactory(const SurfaceFactory&) = delete;
46
42
    SurfaceFactory& operator=(const SurfaceFactory&) = delete;