OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui_screen_locker.h" | 5 #include "chrome/browser/chromeos/login/webui_screen_locker.h" |
6 | 6 |
| 7 #include <X11/extensions/XTest.h> |
| 8 #include <X11/keysym.h> |
| 9 #include <gdk/gdkkeysyms.h> |
| 10 #include <gdk/gdkx.h> |
| 11 |
| 12 // Evil hack to undo X11 evil #define. |
| 13 #undef None |
| 14 #undef Status |
| 15 |
7 #include "base/command_line.h" | 16 #include "base/command_line.h" |
8 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 18 #include "base/values.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 19 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/cros/network_library.h" | 20 #include "chrome/browser/chromeos/cros/network_library.h" |
12 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" | 21 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
13 #include "chrome/browser/chromeos/login/helper.h" | 22 #include "chrome/browser/chromeos/login/helper.h" |
14 #include "chrome/browser/chromeos/login/screen_locker.h" | 23 #include "chrome/browser/chromeos/login/screen_locker.h" |
15 #include "chrome/browser/chromeos/login/user_manager.h" | 24 #include "chrome/browser/chromeos/login/user_manager.h" |
16 #include "chrome/browser/chromeos/login/webui_login_display.h" | 25 #include "chrome/browser/chromeos/login/webui_login_display.h" |
17 #include "chrome/browser/ui/views/dom_view.h" | 26 #include "chrome/browser/ui/views/dom_view.h" |
18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 27 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
19 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
20 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
21 #include "content/browser/renderer_host/render_widget_host_view.h" | 30 #include "content/browser/renderer_host/render_widget_host_view.h" |
22 #include "content/public/browser/notification_service.h" | 31 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/notification_types.h" | 32 #include "content/public/browser/notification_types.h" |
24 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
25 #include "ui/base/x/x11_util.h" | 34 #include "ui/base/x/x11_util.h" |
26 #include "ui/gfx/screen.h" | 35 #include "ui/gfx/screen.h" |
27 #include "ui/views/widget/native_widget_gtk.h" | 36 #include "ui/views/widget/native_widget_gtk.h" |
28 | 37 |
29 // These conflict with some of the Chrome headers, so must be included last. | |
30 #include <X11/extensions/XTest.h> | |
31 #include <X11/keysym.h> | |
32 #include <gdk/gdkkeysyms.h> | |
33 #include <gdk/gdkx.h> | |
34 | |
35 namespace { | 38 namespace { |
36 | 39 |
37 // URL which corresponds to the login WebUI. | 40 // URL which corresponds to the login WebUI. |
38 const char kLoginURL[] = "chrome://oobe/login"; | 41 const char kLoginURL[] = "chrome://oobe/login"; |
39 | 42 |
40 // The maximum duration for which locker should try to grab the keyboard and | 43 // The maximum duration for which locker should try to grab the keyboard and |
41 // mouse and its interval for regrabbing on failure. | 44 // mouse and its interval for regrabbing on failure. |
42 const int kMaxGrabFailureSec = 30; | 45 const int kMaxGrabFailureSec = 30; |
43 const int64 kRetryGrabIntervalMs = 500; | 46 const int64 kRetryGrabIntervalMs = 500; |
44 | 47 |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 } | 451 } |
449 | 452 |
450 void WebUIScreenLocker::OnUserSelected(const std::string& username) { | 453 void WebUIScreenLocker::OnUserSelected(const std::string& username) { |
451 } | 454 } |
452 | 455 |
453 void WebUIScreenLocker::OnStartEnterpriseEnrollment() { | 456 void WebUIScreenLocker::OnStartEnterpriseEnrollment() { |
454 NOTREACHED(); | 457 NOTREACHED(); |
455 } | 458 } |
456 | 459 |
457 } // namespace chromeos | 460 } // namespace chromeos |
OLD | NEW |