~thomas-voss/unity-system-compositor/fallback-gracefully-if-hw-api-is-missing-take-2

« back to all changes in this revision

Viewing changes to src/mir_screen.h

  • Committer: CI Train Bot
  • Author(s): Alexandros Frantzis
  • Date: 2015-09-30 12:29:51 UTC
  • mfrom: (200.2.59 0.1)
  • Revision ID: ci-train-bot@canonical.com-20150930122951-e9xrtnj84gpx38hu
ReleaseĀ 0.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
              std::shared_ptr<mir::time::AlarmFactory> const& alarm_factory,
57
57
              std::shared_ptr<usc::Clock> const& clock,
58
58
              Timeouts inactivity_timeouts,
59
 
              Timeouts notification_timeouts);
 
59
              Timeouts notification_timeouts,
 
60
              Timeouts call_timeouts);
60
61
    ~MirScreen();
61
62
 
62
63
    void enable_inactivity_timers(bool enable) override;
79
80
    virtual void dimmer_alarm_notification();
80
81
 
81
82
private:
 
83
    enum class ForceResetTimers { no, yes };
82
84
    class LockableCallback;
83
85
    class PowerOffLockableCallback;
84
86
    class DimmerLockableCallback;
88
90
 
89
91
    void cancel_timers_l(PowerStateChangeReason reason);
90
92
    void reset_timers_l(PowerStateChangeReason reason);
91
 
    void reset_timers_ignoring_power_mode_l(PowerStateChangeReason reason);
 
93
    void reset_timers_ignoring_power_mode_l(PowerStateChangeReason reason, ForceResetTimers force);
92
94
    void enable_inactivity_timers_l(bool flag);
93
95
    Timeouts timeouts_for(PowerStateChangeReason reason);
94
96
    bool is_screen_change_allowed(MirPowerMode mode, PowerStateChangeReason reason);
107
109
    std::mutex guard;
108
110
    Timeouts inactivity_timeouts;
109
111
    Timeouts notification_timeouts;
 
112
    Timeouts snap_decision_timeouts;
110
113
    mir::time::Timestamp next_power_off{};
111
114
    mir::time::Timestamp next_dimming{};
112
115
    MirPowerMode current_power_mode;
113
116
    bool restart_timers;
114
117
    PowerStateChangeHandler power_state_change_handler;
115
118
    bool allow_proximity_to_turn_on_screen;
 
119
    bool turned_on_by_user;
116
120
};
117
121
 
118
122
}