| 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/status/status_area_view_chromeos.h" | 5 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 9 #include "chrome/browser/chromeos/status/accessibility_menu_button.h" | 9 #include "chrome/browser/chromeos/status/accessibility_menu_button.h" |
| 10 #include "chrome/browser/chromeos/status/caps_lock_menu_button.h" | 10 #include "chrome/browser/chromeos/status/caps_lock_menu_button.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 StatusAreaViewChromeos::~StatusAreaViewChromeos() { | 26 StatusAreaViewChromeos::~StatusAreaViewChromeos() { |
| 27 CrosLibrary::Get()->GetPowerLibrary()->RemoveObserver(this); | 27 CrosLibrary::Get()->GetPowerLibrary()->RemoveObserver(this); |
| 28 system::TimezoneSettings::GetInstance()->RemoveObserver(this); | 28 system::TimezoneSettings::GetInstance()->RemoveObserver(this); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void StatusAreaViewChromeos::Init(StatusAreaButton::Delegate* delegate, | 31 void StatusAreaViewChromeos::Init(StatusAreaButton::Delegate* delegate, |
| 32 ScreenMode screen_mode) { | 32 ScreenMode screen_mode) { |
| 33 AddChromeosButtons(this, delegate, screen_mode); | 33 AddChromeosButtons(this, delegate, screen_mode); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void StatusAreaViewChromeos::PowerChanged(const PowerSupplyStatus& status) { | |
| 37 } | |
| 38 | |
| 39 void StatusAreaViewChromeos::SystemResumed() { | 36 void StatusAreaViewChromeos::SystemResumed() { |
| 40 UpdateClockText(); | 37 UpdateClockText(); |
| 41 } | 38 } |
| 42 | 39 |
| 43 void StatusAreaViewChromeos::TimezoneChanged(const icu::TimeZone& timezone) { | 40 void StatusAreaViewChromeos::TimezoneChanged(const icu::TimeZone& timezone) { |
| 44 UpdateClockText(); | 41 UpdateClockText(); |
| 45 } | 42 } |
| 46 | 43 |
| 47 void StatusAreaViewChromeos::UpdateClockText() { | 44 void StatusAreaViewChromeos::UpdateClockText() { |
| 48 ClockMenuButton* clock_button = | 45 ClockMenuButton* clock_button = |
| (...skipping 26 matching lines...) Expand all Loading... |
| 75 status_area->AddButton(new ClockMenuButton(delegate), border); | 72 status_area->AddButton(new ClockMenuButton(delegate), border); |
| 76 | 73 |
| 77 status_area->AddButton( | 74 status_area->AddButton( |
| 78 new InputMethodMenuButton(delegate, screen_mode), no_border); | 75 new InputMethodMenuButton(delegate, screen_mode), no_border); |
| 79 status_area->AddButton( | 76 status_area->AddButton( |
| 80 new NetworkMenuButton(delegate, screen_mode), no_border); | 77 new NetworkMenuButton(delegate, screen_mode), no_border); |
| 81 status_area->AddButton(new PowerMenuButton(delegate), no_border); | 78 status_area->AddButton(new PowerMenuButton(delegate), no_border); |
| 82 } | 79 } |
| 83 | 80 |
| 84 } // namespace chromeos | 81 } // namespace chromeos |
| OLD | NEW |