~ci-train-bot/miral/miral-ubuntu-zesty-2818

« back to all changes in this revision

Viewing changes to include/miral/window_management_policy.h

  • Committer: Bileto Bot
  • Date: 2017-01-27 03:02:13 UTC
  • mfrom: (330.2.167 miral0)
  • Revision ID: ci-train-bot@canonical.com-20170127030213-q62prxw1xh7kasbu
* New upstream release 1.1.0 (https://launchpad.net/miral/+milestone/1.1)
  - ABI summary:
    . miral ABI unchanged at 2
  - Enhancements:
    . Compatibility with Mir 0.26 and update API to use the new Mir types and
      enums.
    . Logging of exceptions added to --window-management-trace
    . Rename WindowManagementPolicy::place_new_surface => place_new_window"
  - Bugs fixed:
    . top-level window is not raised along with its child (LP: #1658085)
    . miral-shell depends on default cursor theme being installed
      (LP: #1658159)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <mir/geometry/rectangles.h>
24
24
#include <mir_toolkit/event.h>
25
25
 
 
26
#include <miral/detail/mir_forward_compatibility.h>
 
27
 
26
28
namespace miral
27
29
{
28
30
class Window;
44
46
 
45
47
    /** Customize initial window placement
46
48
     *
47
 
     * @param app_info                the application requesting a new surface
 
49
     * @param app_info                the application requesting a new window
48
50
     * @param requested_specification the requested specification (updated with default placement)
49
51
     * @return                        the customized specification
50
52
     */
51
 
    virtual auto place_new_surface(
 
53
    virtual auto place_new_window(
52
54
        ApplicationInfo const& app_info,
53
55
        WindowSpecification const& requested_specification) -> WindowSpecification = 0;
54
56
 
141
143
     * @param window_info   the window
142
144
     * @param state         the new state
143
145
     */
144
 
    virtual void advise_state_change(WindowInfo const& window_info, MirSurfaceState state);
 
146
    virtual void advise_state_change(WindowInfo const& window_info, MirWindowState state);
145
147
 
146
148
    /** Notification that a window is about to move
147
149
     *