| 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/ui/views/aura/status_area_host_aura.h" | 5 #include "chrome/browser/ui/views/aura/status_area_host_aura.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/chromeos/status/clock_menu_button.h" | 8 #include "chrome/browser/chromeos/status/clock_menu_button.h" |
| 9 #include "chrome/browser/chromeos/status/memory_menu_button.h" | 9 #include "chrome/browser/chromeos/status/memory_menu_button.h" |
| 10 #include "chrome/browser/chromeos/status/status_area_view.h" | 10 #include "chrome/browser/chromeos/status/status_area_view.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 StatusAreaHostAura::StatusAreaHostAura() | 29 StatusAreaHostAura::StatusAreaHostAura() |
| 30 : status_area_widget_(NULL), | 30 : status_area_widget_(NULL), |
| 31 status_area_view_(NULL) { | 31 status_area_view_(NULL) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 StatusAreaHostAura::~StatusAreaHostAura() { | 34 StatusAreaHostAura::~StatusAreaHostAura() { |
| 35 } | 35 } |
| 36 | 36 |
| 37 views::View* StatusAreaHostAura::GetStatusAreaForTest() { | 37 StatusAreaView* StatusAreaHostAura::GetStatusArea() { |
| 38 return status_area_view_; | 38 return status_area_view_; |
| 39 } | 39 } |
| 40 | 40 |
| 41 views::Widget* StatusAreaHostAura::CreateStatusArea() { | 41 views::Widget* StatusAreaHostAura::CreateStatusArea() { |
| 42 aura_shell::Shell* aura_shell = aura_shell::Shell::GetInstance(); | 42 aura_shell::Shell* aura_shell = aura_shell::Shell::GetInstance(); |
| 43 aura::Window* status_window = aura_shell->GetContainer( | 43 aura::Window* status_window = aura_shell->GetContainer( |
| 44 aura_shell::internal::kShellWindowId_StatusContainer); | 44 aura_shell::internal::kShellWindowId_StatusContainer); |
| 45 | 45 |
| 46 // Create status area view. | 46 // Create status area view. |
| 47 status_area_view_ = new StatusAreaView(); | 47 status_area_view_ = new StatusAreaView(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 StatusAreaButton::TextStyle StatusAreaHostAura::GetStatusAreaTextStyle() const { | 140 StatusAreaButton::TextStyle StatusAreaHostAura::GetStatusAreaTextStyle() const { |
| 141 return StatusAreaButton::WHITE_HALOED; | 141 return StatusAreaButton::WHITE_HALOED; |
| 142 } | 142 } |
| 143 | 143 |
| 144 void StatusAreaHostAura::ButtonVisibilityChanged(views::View* button_view) { | 144 void StatusAreaHostAura::ButtonVisibilityChanged(views::View* button_view) { |
| 145 if (status_area_view_) | 145 if (status_area_view_) |
| 146 status_area_view_->UpdateButtonVisibility(); | 146 status_area_view_->UpdateButtonVisibility(); |
| 147 } | 147 } |
| OLD | NEW |