| 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 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/browser/chromeos/login/screen_lock_view.h" | 38 #include "chrome/browser/chromeos/login/screen_lock_view.h" |
| 39 #include "chrome/browser/chromeos/login/shutdown_button.h" | 39 #include "chrome/browser/chromeos/login/shutdown_button.h" |
| 40 #include "chrome/browser/chromeos/system_key_event_listener.h" | 40 #include "chrome/browser/chromeos/system_key_event_listener.h" |
| 41 #include "chrome/browser/chromeos/wm_ipc.h" | 41 #include "chrome/browser/chromeos/wm_ipc.h" |
| 42 #include "chrome/browser/metrics/user_metrics.h" | 42 #include "chrome/browser/metrics/user_metrics.h" |
| 43 #include "chrome/browser/profiles/profile_manager.h" | 43 #include "chrome/browser/profiles/profile_manager.h" |
| 44 #include "chrome/browser/sync/profile_sync_service.h" | 44 #include "chrome/browser/sync/profile_sync_service.h" |
| 45 #include "chrome/browser/ui/browser.h" | 45 #include "chrome/browser/ui/browser.h" |
| 46 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
| 47 #include "chrome/common/notification_service.h" | 47 #include "chrome/common/notification_service.h" |
| 48 #include "cros/chromeos_wm_ipc_enums.h" | |
| 49 #include "googleurl/src/gurl.h" | 48 #include "googleurl/src/gurl.h" |
| 50 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
| 51 #include "grit/theme_resources.h" | 50 #include "grit/theme_resources.h" |
| 51 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
| 52 #include "views/screen.h" | 52 #include "views/screen.h" |
| 53 #include "views/widget/root_view.h" | 53 #include "views/widget/root_view.h" |
| 54 #include "views/widget/widget_gtk.h" | 54 #include "views/widget/widget_gtk.h" |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| 58 // The maximum duration for which locker should try to grab the keyboard and | 58 // The maximum duration for which locker should try to grab the keyboard and |
| 59 // mouse and its interval for regrabbing on failure. | 59 // mouse and its interval for regrabbing on failure. |
| 60 const int kMaxGrabFailureSec = 30; | 60 const int kMaxGrabFailureSec = 30; |
| 61 const int64 kRetryGrabIntervalMs = 500; | 61 const int64 kRetryGrabIntervalMs = 500; |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 | 1115 |
| 1116 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) { | 1116 bool ScreenLocker::AcceleratorPressed(const views::Accelerator& accelerator) { |
| 1117 if (!background_view_->IsScreenSaverVisible()) { | 1117 if (!background_view_->IsScreenSaverVisible()) { |
| 1118 StartScreenSaver(); | 1118 StartScreenSaver(); |
| 1119 return true; | 1119 return true; |
| 1120 } | 1120 } |
| 1121 return false; | 1121 return false; |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 } // namespace chromeos | 1124 } // namespace chromeos |
| OLD | NEW |