Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/browser/chromeos/login/webui_screen_locker.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix official build, avoid DCHECK in official Linux/ChromeOS builds. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
16 #include "base/command_line.h" 7 #include "base/command_line.h"
17 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
18 #include "base/values.h" 9 #include "base/values.h"
19 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
20 #include "chrome/browser/chromeos/cros/network_library.h" 11 #include "chrome/browser/chromeos/cros/network_library.h"
21 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" 12 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h"
22 #include "chrome/browser/chromeos/login/helper.h" 13 #include "chrome/browser/chromeos/login/helper.h"
23 #include "chrome/browser/chromeos/login/screen_locker.h" 14 #include "chrome/browser/chromeos/login/screen_locker.h"
24 #include "chrome/browser/chromeos/login/user_manager.h" 15 #include "chrome/browser/chromeos/login/user_manager.h"
25 #include "chrome/browser/chromeos/login/webui_login_display.h" 16 #include "chrome/browser/chromeos/login/webui_login_display.h"
26 #include "chrome/browser/ui/views/dom_view.h" 17 #include "chrome/browser/ui/views/dom_view.h"
27 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
28 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
29 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
30 #include "content/browser/renderer_host/render_widget_host_view.h" 21 #include "content/browser/renderer_host/render_widget_host_view.h"
31 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
32 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
33 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
34 #include "ui/base/x/x11_util.h" 25 #include "ui/base/x/x11_util.h"
35 #include "ui/gfx/screen.h" 26 #include "ui/gfx/screen.h"
36 #include "ui/views/widget/native_widget_gtk.h" 27 #include "ui/views/widget/native_widget_gtk.h"
37 28
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
38 namespace { 35 namespace {
39 36
40 // URL which corresponds to the login WebUI. 37 // URL which corresponds to the login WebUI.
41 const char kLoginURL[] = "chrome://oobe/login"; 38 const char kLoginURL[] = "chrome://oobe/login";
42 39
43 // The maximum duration for which locker should try to grab the keyboard and 40 // The maximum duration for which locker should try to grab the keyboard and
44 // mouse and its interval for regrabbing on failure. 41 // mouse and its interval for regrabbing on failure.
45 const int kMaxGrabFailureSec = 30; 42 const int kMaxGrabFailureSec = 30;
46 const int64 kRetryGrabIntervalMs = 500; 43 const int64 kRetryGrabIntervalMs = 500;
47 44
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 448 }
452 449
453 void WebUIScreenLocker::OnUserSelected(const std::string& username) { 450 void WebUIScreenLocker::OnUserSelected(const std::string& username) {
454 } 451 }
455 452
456 void WebUIScreenLocker::OnStartEnterpriseEnrollment() { 453 void WebUIScreenLocker::OnStartEnterpriseEnrollment() {
457 NOTREACHED(); 454 NOTREACHED();
458 } 455 }
459 456
460 } // namespace chromeos 457 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698