| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 |
| 9 namespace chromeos { |
| 10 |
| 11 BaseScreenHandler::BaseScreenHandler() : page_is_ready_(false) { |
| 12 } |
| 13 |
| 14 BaseScreenHandler::~BaseScreenHandler() { |
| 15 } |
| 16 |
| 17 void BaseScreenHandler::InitializeBase() { |
| 18 page_is_ready_ = true; |
| 19 Initialize(); |
| 20 } |
| 21 |
| 22 void BaseScreenHandler::ShowScreen(const char* screen_name, |
| 23 const char* data) { |
| 24 DictionaryValue screen_params; |
| 25 screen_params.SetString("id", screen_name); |
| 26 if (data) |
| 27 screen_params.SetString("data", data); |
| 28 web_ui_->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); |
| 29 } |
| 30 |
| 31 } // namespace chromeos |
| OLD | NEW |