Chromium Code Reviews| 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 19 matching lines...) Expand all Loading... | |
| 30 | 30 |
| 31 bool BaseScreen::IsStatusAreaDisplayed() { | 31 bool BaseScreen::IsStatusAreaDisplayed() { |
| 32 return true; | 32 return true; |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool BaseScreen::IsPermanent() { | 35 bool BaseScreen::IsPermanent() { |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 std::string BaseScreen::GetID() const { | 39 std::string BaseScreen::GetID() const { |
| 40 return GetName(); | 40 return GetName(); |
|
Denis Kuznetsov (DE-MUC)
2014/11/25 17:31:16
not in scope, but as you touch this file, please a
ygorshenin1
2014/11/26 11:45:40
Done.
| |
| 41 } | 41 } |
| 42 | 42 |
| 43 void BaseScreen::OnContextChanged(const base::DictionaryValue& diff) { | |
| 44 context_.ApplyChanges(diff, nullptr); | |
| 45 } | |
| 46 | |
| 43 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) { | 47 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) { |
| 44 base_screen_delegate_->OnExit(*this, exit_code, &context_); | 48 base_screen_delegate_->OnExit(*this, exit_code, &context_); |
| 45 } | 49 } |
| 46 | 50 |
| 47 void BaseScreen::SetContext(::login::ScreenContext* context) { | 51 void BaseScreen::SetContext(::login::ScreenContext* context) { |
| 48 } | 52 } |
| 49 | 53 |
| 50 void BaseScreen::OnButtonPressed(const std::string& button_id) { | 54 void BaseScreen::OnButtonPressed(const std::string& button_id) { |
| 51 LOG(WARNING) << "BaseScreen::OnButtonPressed(): button_id=" << button_id; | 55 LOG(WARNING) << "BaseScreen::OnButtonPressed(): button_id=" << button_id; |
| 52 } | 56 } |
| 53 | 57 |
| 54 void BaseScreen::OnContextChanged(const base::DictionaryValue* diff) { | |
| 55 LOG(WARNING) << "BaseScreen::OnContextChanged()"; | |
| 56 } | |
| 57 | |
| 58 } // namespace chromeos | 58 } // namespace chromeos |
| OLD | NEW |