| 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/base_login_display_host.h" | |
| 6 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 7 | 6 |
| 8 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/browser/chromeos/login/base_login_display_host.h" |
| 9 #include "content/browser/webui/web_ui.h" |
| 9 | 10 |
| 10 namespace chromeos { | 11 namespace chromeos { |
| 11 | 12 |
| 12 BaseScreenHandler::BaseScreenHandler() : page_is_ready_(false) { | 13 BaseScreenHandler::BaseScreenHandler() : page_is_ready_(false) { |
| 13 } | 14 } |
| 14 | 15 |
| 15 BaseScreenHandler::~BaseScreenHandler() { | 16 BaseScreenHandler::~BaseScreenHandler() { |
| 16 } | 17 } |
| 17 | 18 |
| 18 void BaseScreenHandler::InitializeBase() { | 19 void BaseScreenHandler::InitializeBase() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); | 31 screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); |
| 31 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); | 32 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); |
| 32 } | 33 } |
| 33 | 34 |
| 34 | 35 |
| 35 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() { | 36 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() { |
| 36 return BaseLoginDisplayHost::default_host()->GetNativeWindow(); | 37 return BaseLoginDisplayHost::default_host()->GetNativeWindow(); |
| 37 } | 38 } |
| 38 | 39 |
| 39 } // namespace chromeos | 40 } // namespace chromeos |
| OLD | NEW |