OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/login/screen_locker.h" | 5 #include "chrome/browser/chromeos/login/screen_locker.h" |
6 | 6 |
7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include <X11/extensions/XTest.h> | 10 #include <X11/extensions/XTest.h> |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // Don't let X draw default background, which was causing flash on | 702 // Don't let X draw default background, which was causing flash on |
703 // resume. | 703 // resume. |
704 gdk_window_set_back_pixmap(lock_window_->GetNativeView()->window, | 704 gdk_window_set_back_pixmap(lock_window_->GetNativeView()->window, |
705 NULL, false); | 705 NULL, false); |
706 gdk_window_set_back_pixmap(lock_widget_->GetNativeView()->window, | 706 gdk_window_set_back_pixmap(lock_widget_->GetNativeView()->window, |
707 NULL, false); | 707 NULL, false); |
708 lock_window->set_toplevel_focus_widget(lock_widget_->window_contents()); | 708 lock_window->set_toplevel_focus_widget(lock_widget_->window_contents()); |
709 | 709 |
710 // Create the SystemKeyEventListener so it can listen for system keyboard | 710 // Create the SystemKeyEventListener so it can listen for system keyboard |
711 // messages regardless of focus while screen locked. | 711 // messages regardless of focus while screen locked. |
712 SystemKeyEventListener::instance(); | 712 SystemKeyEventListener::GetInstance(); |
713 } | 713 } |
714 | 714 |
715 void ScreenLocker::OnLoginFailure(const LoginFailure& error) { | 715 void ScreenLocker::OnLoginFailure(const LoginFailure& error) { |
716 DVLOG(1) << "OnLoginFailure"; | 716 DVLOG(1) << "OnLoginFailure"; |
717 UserMetrics::RecordAction(UserMetricsAction("ScreenLocker_OnLoginFailure")); | 717 UserMetrics::RecordAction(UserMetricsAction("ScreenLocker_OnLoginFailure")); |
718 if (authentication_start_time_.is_null()) { | 718 if (authentication_start_time_.is_null()) { |
719 LOG(ERROR) << "authentication_start_time_ is not set"; | 719 LOG(ERROR) << "authentication_start_time_ is not set"; |
720 } else { | 720 } else { |
721 base::TimeDelta delta = base::Time::Now() - authentication_start_time_; | 721 base::TimeDelta delta = base::Time::Now() - authentication_start_time_; |
722 VLOG(1) << "Authentication failure time: " << delta.InSecondsF(); | 722 VLOG(1) << "Authentication failure time: " << delta.InSecondsF(); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 | 1037 |
1038 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) { | 1038 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) { |
1039 if (!background_view_->IsScreenSaverVisible()) { | 1039 if (!background_view_->IsScreenSaverVisible()) { |
1040 StartScreenSaver(); | 1040 StartScreenSaver(); |
1041 return true; | 1041 return true; |
1042 } | 1042 } |
1043 return false; | 1043 return false; |
1044 } | 1044 } |
1045 | 1045 |
1046 } // namespace chromeos | 1046 } // namespace chromeos |
OLD | NEW |