Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: ash/system/bluetooth/tray_bluetooth.cc

Issue 10200006: ash: Refresh the tray items, instead of recreating them, when login status changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/bluetooth/tray_bluetooth.h ('k') | ash/system/brightness/tray_brightness.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/system/bluetooth/tray_bluetooth.h" 5 #include "ash/system/bluetooth/tray_bluetooth.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "ash/system/tray/system_tray_delegate.h" 9 #include "ash/system/tray/system_tray_delegate.h"
10 #include "ash/system/tray/tray_constants.h" 10 #include "ash/system/tray/tray_constants.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 } 243 }
244 244
245 void TrayBluetooth::DestroyDefaultView() { 245 void TrayBluetooth::DestroyDefaultView() {
246 default_.reset(); 246 default_.reset();
247 } 247 }
248 248
249 void TrayBluetooth::DestroyDetailedView() { 249 void TrayBluetooth::DestroyDetailedView() {
250 detailed_.reset(); 250 detailed_.reset();
251 } 251 }
252 252
253 void TrayBluetooth::UpdateAfterLoginStatusChange(user::LoginStatus status) {
254 }
255
253 void TrayBluetooth::OnBluetoothRefresh() { 256 void TrayBluetooth::OnBluetoothRefresh() {
254 BluetoothDeviceList list; 257 BluetoothDeviceList list;
255 Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices(&list); 258 Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices(&list);
256 if (default_.get()) 259 if (default_.get())
257 default_->UpdateLabel(); 260 default_->UpdateLabel();
258 if (detailed_.get()) 261 if (detailed_.get())
259 detailed_->Update(list); 262 detailed_->Update(list);
260 } 263 }
261 264
262 } // namespace internal 265 } // namespace internal
263 } // namespace ash 266 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/bluetooth/tray_bluetooth.h ('k') | ash/system/brightness/tray_brightness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698