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/ui/webui/chromeos/login/base_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 8 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
9 #include "content/public/browser/web_ui.h" | 9 #include "content/public/browser/web_ui.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 LocalizedValuesBuilder::LocalizedValuesBuilder(base::DictionaryValue* dict) | 14 LocalizedValuesBuilder::LocalizedValuesBuilder(base::DictionaryValue* dict) |
15 : dict_(dict) { | 15 : dict_(dict) { |
16 } | 16 } |
17 | 17 |
18 void LocalizedValuesBuilder::Add(const std::string& key, int message_id) { | 18 void LocalizedValuesBuilder::Add(const std::string& key, int message_id) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 if (!web_ui()) | 79 if (!web_ui()) |
80 return; | 80 return; |
81 DictionaryValue screen_params; | 81 DictionaryValue screen_params; |
82 screen_params.SetString("id", screen_name); | 82 screen_params.SetString("id", screen_name); |
83 if (data) | 83 if (data) |
84 screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); | 84 screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); |
85 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); | 85 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); |
86 } | 86 } |
87 | 87 |
88 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() { | 88 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() { |
89 return BaseLoginDisplayHost::default_host()->GetNativeWindow(); | 89 return LoginDisplayHostImpl::default_host()->GetNativeWindow(); |
90 } | 90 } |
91 | 91 |
92 } // namespace chromeos | 92 } // namespace chromeos |
OLD | NEW |