Home | History | Annotate | Download | only in screens
      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
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/browser/chromeos/login/screens/base_screen.h"
      6 
      7 #include "base/logging.h"
      8 #include "chrome/browser/chromeos/login/screens/screen_observer.h"
      9 
     10 namespace chromeos {
     11 
     12 BaseScreen::BaseScreen() {
     13 }
     14 
     15 BaseScreen::~BaseScreen() {
     16 }
     17 
     18 void BaseScreen::Initialize(ScreenContext* context) {
     19 }
     20 
     21 void BaseScreen::OnShow() {
     22 }
     23 
     24 void BaseScreen::OnHide() {
     25 }
     26 
     27 void BaseScreen::OnClose() {
     28 }
     29 
     30 bool BaseScreen::IsStatusAreaDisplayed() {
     31   return true;
     32 }
     33 
     34 bool BaseScreen::IsPermanent() {
     35   return false;
     36 }
     37 
     38 std::string BaseScreen::GetID() const {
     39   return GetName();
     40 }
     41 
     42 void BaseScreen::Finish(const std::string& outcome) {
     43 
     44 }
     45 
     46 void BaseScreen::SetContext(ScreenContext* context) {
     47 }
     48 
     49 void BaseScreen::OnButtonPressed(const std::string& button_id) {
     50   LOG(WARNING) << "BaseScreen::OnButtonPressed(): button_id=" << button_id;
     51 }
     52 
     53 void BaseScreen::OnContextChanged(const base::DictionaryValue* diff) {
     54   LOG(WARNING) << "BaseScreen::OnContextChanged()";
     55 }
     56 
     57 }  // namespace chromeos
     58