| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 11 #include "chrome/browser/chromeos/cros/network_library.h" | 11 #include "chrome/browser/chromeos/cros/network_library.h" |
| 12 #include "chrome/browser/chromeos/login/helper.h" | 12 #include "chrome/browser/chromeos/login/helper.h" |
| 13 #include "chrome/browser/chromeos/login/screen_locker.h" | 13 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 14 #include "chrome/browser/chromeos/login/user_manager.h" | 14 #include "chrome/browser/chromeos/login/user_manager.h" |
| 15 #include "chrome/browser/chromeos/login/webui_login_display.h" | 15 #include "chrome/browser/chromeos/login/webui_login_display.h" |
| 16 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" | 16 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" |
| 17 #include "chrome/browser/ui/views/dom_view.h" | 17 #include "chrome/browser/ui/views/dom_view.h" |
| 18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "content/browser/renderer_host/render_widget_host_view.h" | |
| 22 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
| 23 #include "content/public/browser/notification_types.h" | 22 #include "content/public/browser/notification_types.h" |
| 23 #include "content/public/browser/render_widget_host_view.h" |
| 24 #include "content/public/browser/web_ui.h" | 24 #include "content/public/browser/web_ui.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "ui/base/x/x11_util.h" | 26 #include "ui/base/x/x11_util.h" |
| 27 #include "ui/gfx/screen.h" | 27 #include "ui/gfx/screen.h" |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // URL which corresponds to the login WebUI. | 31 // URL which corresponds to the login WebUI. |
| 32 const char kLoginURL[] = "chrome://oobe/login"; | 32 const char kLoginURL[] = "chrome://oobe/login"; |
| 33 | 33 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 StatusAreaViewChromeos::ScreenMode WebUIScreenLocker::GetScreenMode() { | 204 StatusAreaViewChromeos::ScreenMode WebUIScreenLocker::GetScreenMode() { |
| 205 return StatusAreaViewChromeos::SCREEN_LOCKER_MODE; | 205 return StatusAreaViewChromeos::SCREEN_LOCKER_MODE; |
| 206 } | 206 } |
| 207 | 207 |
| 208 views::Widget::InitParams::Type WebUIScreenLocker::GetStatusAreaWidgetType() { | 208 views::Widget::InitParams::Type WebUIScreenLocker::GetStatusAreaWidgetType() { |
| 209 return views::Widget::InitParams::TYPE_POPUP; | 209 return views::Widget::InitParams::TYPE_POPUP; |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace chromeos | 212 } // namespace chromeos |
| OLD | NEW |