OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/extensions/screenlock_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/screenlock_private_api.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chromeos/login/screen_locker.h" | 9 #include "chrome/browser/chromeos/login/screen_locker.h" |
10 #include "chrome/browser/extensions/extension_system.h" | |
11 #include "chrome/browser/extensions/image_loader.h" | 10 #include "chrome/browser/extensions/image_loader.h" |
12 #include "chrome/common/extensions/api/screenlock_private.h" | 11 #include "chrome/common/extensions/api/screenlock_private.h" |
13 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
14 #include "extensions/browser/event_router.h" | 13 #include "extensions/browser/event_router.h" |
| 14 #include "extensions/browser/extension_system.h" |
15 | 15 |
16 namespace screenlock = extensions::api::screenlock_private; | 16 namespace screenlock = extensions::api::screenlock_private; |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 ScreenlockPrivateGetLockedFunction::ScreenlockPrivateGetLockedFunction() {} | 20 ScreenlockPrivateGetLockedFunction::ScreenlockPrivateGetLockedFunction() {} |
21 | 21 |
22 ScreenlockPrivateGetLockedFunction::~ScreenlockPrivateGetLockedFunction() {} | 22 ScreenlockPrivateGetLockedFunction::~ScreenlockPrivateGetLockedFunction() {} |
23 | 23 |
24 bool ScreenlockPrivateGetLockedFunction::RunImpl() { | 24 bool ScreenlockPrivateGetLockedFunction::RunImpl() { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(); | 157 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(); |
158 if (session_manager->HasObserver(this)) | 158 if (session_manager->HasObserver(this)) |
159 session_manager->RemoveObserver(this); | 159 session_manager->RemoveObserver(this); |
160 } | 160 } |
161 | 161 |
162 void ScreenlockPrivateEventRouter::OnButtonClicked() { | 162 void ScreenlockPrivateEventRouter::OnButtonClicked() { |
163 DispatchEvent(screenlock::OnButtonClicked::kEventName, NULL); | 163 DispatchEvent(screenlock::OnButtonClicked::kEventName, NULL); |
164 } | 164 } |
165 | 165 |
166 } // namespace extensions | 166 } // namespace extensions |
OLD | NEW |