~mterry/mir/session-for-surface

« back to all changes in this revision

Viewing changes to examples/demo-shell/fullscreen_placement_strategy.h

  • Committer: Michael Terry
  • Date: 2013-07-29 17:51:51 UTC
  • mfrom: (832.1.58 trunk)
  • Revision ID: michael.terry@canonical.com-20130729175151-3thcnlepeihhzbb8
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
namespace mir
27
27
{
28
 
namespace graphics
 
28
namespace shell
29
29
{
30
 
class ViewableArea;
 
30
class DisplayLayout;
31
31
}
32
32
namespace examples
33
33
{
35
35
class FullscreenPlacementStrategy : public shell::PlacementStrategy
36
36
{
37
37
public:
38
 
    FullscreenPlacementStrategy(std::shared_ptr<graphics::ViewableArea> const& display_area);
 
38
    FullscreenPlacementStrategy(std::shared_ptr<shell::DisplayLayout> const& display_layout);
39
39
    ~FullscreenPlacementStrategy() = default;
40
40
    
41
41
    shell::SurfaceCreationParameters place(shell::SurfaceCreationParameters const& request_parameters);
45
45
    FullscreenPlacementStrategy& operator=(FullscreenPlacementStrategy const&) = delete;
46
46
 
47
47
private:
48
 
    std::shared_ptr<graphics::ViewableArea> const display_area;
 
48
    std::shared_ptr<shell::DisplayLayout> const display_layout;
49
49
};
50
50
 
51
51
}