OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/kiosk_autolaunch_screen_handler
.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/kiosk_autolaunch_screen_handler
.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 namespace chromeos { | 33 namespace chromeos { |
34 | 34 |
35 KioskAutolaunchScreenHandler::KioskAutolaunchScreenHandler() { | 35 KioskAutolaunchScreenHandler::KioskAutolaunchScreenHandler() { |
36 set_call_js_prefix(kJsScreenPath); | 36 set_call_js_prefix(kJsScreenPath); |
37 KioskAppManager::Get()->AddObserver(this); | 37 KioskAppManager::Get()->AddObserver(this); |
38 } | 38 } |
39 | 39 |
40 KioskAutolaunchScreenHandler::~KioskAutolaunchScreenHandler() { | 40 KioskAutolaunchScreenHandler::~KioskAutolaunchScreenHandler() { |
41 if (delegate_) | 41 if (delegate_) |
42 delegate_->OnActorDestroyed(this); | 42 delegate_->OnViewDestroyed(this); |
43 | 43 |
44 KioskAppManager::Get()->RemoveObserver(this); | 44 KioskAppManager::Get()->RemoveObserver(this); |
45 } | 45 } |
46 | 46 |
47 void KioskAutolaunchScreenHandler::Show() { | 47 void KioskAutolaunchScreenHandler::Show() { |
48 if (!page_is_ready()) { | 48 if (!page_is_ready()) { |
49 show_on_init_ = true; | 49 show_on_init_ = true; |
50 return; | 50 return; |
51 } | 51 } |
52 UpdateKioskApp(); | 52 UpdateKioskApp(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void KioskAutolaunchScreenHandler::OnKioskAppsSettingsChanged() { | 150 void KioskAutolaunchScreenHandler::OnKioskAppsSettingsChanged() { |
151 UpdateKioskApp(); | 151 UpdateKioskApp(); |
152 } | 152 } |
153 | 153 |
154 void KioskAutolaunchScreenHandler::OnKioskAppDataChanged( | 154 void KioskAutolaunchScreenHandler::OnKioskAppDataChanged( |
155 const std::string& app_id) { | 155 const std::string& app_id) { |
156 UpdateKioskApp(); | 156 UpdateKioskApp(); |
157 } | 157 } |
158 | 158 |
159 } // namespace chromeos | 159 } // namespace chromeos |
OLD | NEW |