blob: c234e36526a88a3b6470b35cd194f3c00cef55ec (
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
|
// Copyright (c) 2012 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.
#include "chrome/browser/chromeos/power/screen_lock_observer.h"
#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
#include "chrome/browser/extensions/system/system_api.h"
namespace chromeos {
ScreenLockObserver::ScreenLockObserver() {
DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this);
}
ScreenLockObserver::~ScreenLockObserver() {
DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this);
}
void ScreenLockObserver::UnlockScreen() {
extensions::DispatchScreenUnlockedEvent();
}
} // namespace chromeos
|