| 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/screens/base_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 return GetName(); | 42 return GetName(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) { | 45 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) { |
| 46 base_screen_delegate_->OnExit(*this, exit_code, &context_); | 46 base_screen_delegate_->OnExit(*this, exit_code, &context_); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void BaseScreen::SetContext(::login::ScreenContext* context) { | 49 void BaseScreen::SetContext(::login::ScreenContext* context) { |
| 50 } | 50 } |
| 51 | 51 |
| 52 void BaseScreen::OnButtonPressed(const std::string& button_id) { | 52 void BaseScreen::OnButtonClicked(const std::string& button_id) { |
| 53 LOG(WARNING) << "BaseScreen::OnButtonPressed(): button_id=" << button_id; | 53 LOG(WARNING) << "BaseScreen::OnButtonClicked(): button_id=" << button_id; |
| 54 } | 54 } |
| 55 | 55 |
| 56 void BaseScreen::OnContextKeyUpdated( | 56 void BaseScreen::OnContextKeyUpdated( |
| 57 const ::login::ScreenContext::KeyType& key) { | 57 const ::login::ScreenContext::KeyType& key) { |
| 58 LOG(WARNING) << "BaseScreen::OnContextKeyUpdated(): key=" << key; | 58 LOG(WARNING) << "BaseScreen::OnContextKeyUpdated(): key=" << key; |
| 59 } | 59 } |
| 60 | 60 |
| 61 void BaseScreen::OnContextChanged(const base::DictionaryValue& diff) { | 61 void BaseScreen::OnContextChanged(const base::DictionaryValue& diff) { |
| 62 std::vector<::login::ScreenContext::KeyType> keys; | 62 std::vector<::login::ScreenContext::KeyType> keys; |
| 63 context_.ApplyChanges(diff, &keys); | 63 context_.ApplyChanges(diff, &keys); |
| 64 for (const auto& key : keys) | 64 for (const auto& key : keys) |
| 65 OnContextKeyUpdated(key); | 65 OnContextKeyUpdated(key); |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace chromeos | 68 } // namespace chromeos |
| OLD | NEW |