| 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/reset_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 : BaseScreenHandler(kJsScreenPath), | 31 : BaseScreenHandler(kJsScreenPath), |
| 32 model_(nullptr), | 32 model_(nullptr), |
| 33 show_on_init_(false) { | 33 show_on_init_(false) { |
| 34 } | 34 } |
| 35 | 35 |
| 36 ResetScreenHandler::~ResetScreenHandler() { | 36 ResetScreenHandler::~ResetScreenHandler() { |
| 37 if (model_) | 37 if (model_) |
| 38 model_->OnViewDestroyed(this); | 38 model_->OnViewDestroyed(this); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void ResetScreenHandler::PrepareToShow() { | |
| 42 } | |
| 43 | |
| 44 void ResetScreenHandler::Show() { | 41 void ResetScreenHandler::Show() { |
| 45 if (!page_is_ready()) { | 42 if (!page_is_ready()) { |
| 46 show_on_init_ = true; | 43 show_on_init_ = true; |
| 47 return; | 44 return; |
| 48 } | 45 } |
| 49 ShowScreen(OobeScreen::SCREEN_OOBE_RESET); | 46 ShowScreen(OobeScreen::SCREEN_OOBE_RESET); |
| 50 } | 47 } |
| 51 | 48 |
| 52 void ResetScreenHandler::Hide() { | 49 void ResetScreenHandler::Hide() { |
| 53 } | 50 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 model_ = &model; | 111 model_ = &model; |
| 115 BaseScreenHandler::SetBaseScreen(model_); | 112 BaseScreenHandler::SetBaseScreen(model_); |
| 116 } | 113 } |
| 117 | 114 |
| 118 void ResetScreenHandler::Unbind() { | 115 void ResetScreenHandler::Unbind() { |
| 119 model_ = nullptr; | 116 model_ = nullptr; |
| 120 BaseScreenHandler::SetBaseScreen(nullptr); | 117 BaseScreenHandler::SetBaseScreen(nullptr); |
| 121 } | 118 } |
| 122 | 119 |
| 123 } // namespace chromeos | 120 } // namespace chromeos |
| OLD | NEW |