blob: cc5e9f97ed55dee923d134d8555952691571bf1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_OBSERVER_H_
#define ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_OBSERVER_H_
#include "ash/ash_export.h"
#include "base/time/time.h"
namespace ash {
class ASH_EXPORT LogoutButtonObserver {
public:
virtual ~LogoutButtonObserver() {}
// Called when the value of the kShowLogoutButtonInTray pref changes, which
// determines whether a logout button should be shown in the system tray
// during a session.
virtual void OnShowLogoutButtonInTrayChanged(bool show) = 0;
// Called when the value of the kLogoutDialogDurationMs pref changes.
// |duration| is the duration for which the logout confirmation dialog is
// shown after the user has pressed the logout button.
virtual void OnLogoutDialogDurationChanged(base::TimeDelta duration) = 0;
};
} // namespace ash
#endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_OBSERVER_H_
|