OLD | NEW |
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" |
11 #include "ash/system/tray/tray_details_view.h" | 11 #include "ash/system/tray/tray_details_view.h" |
12 #include "ash/system/tray/tray_item_more.h" | 12 #include "ash/system/tray/tray_item_more.h" |
13 #include "ash/system/tray/tray_views.h" | 13 #include "ash/system/tray/tray_views.h" |
14 #include "grit/ash_strings.h" | 14 #include "grit/ash_strings.h" |
15 #include "grit/ui_resources_standard.h" | 15 #include "grit/ui_resources.h" |
16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
17 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
18 #include "ui/views/controls/image_view.h" | 18 #include "ui/views/controls/image_view.h" |
19 #include "ui/views/controls/label.h" | 19 #include "ui/views/controls/label.h" |
20 #include "ui/views/layout/box_layout.h" | 20 #include "ui/views/layout/box_layout.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 const int kDeviceListHeight = 276; | 23 const int kDeviceListHeight = 276; |
24 } | 24 } |
25 | 25 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 BluetoothDeviceList list; | 223 BluetoothDeviceList list; |
224 Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices(&list); | 224 Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices(&list); |
225 if (default_) | 225 if (default_) |
226 default_->UpdateLabel(); | 226 default_->UpdateLabel(); |
227 else if (detailed_) | 227 else if (detailed_) |
228 detailed_->Update(list); | 228 detailed_->Update(list); |
229 } | 229 } |
230 | 230 |
231 } // namespace internal | 231 } // namespace internal |
232 } // namespace ash | 232 } // namespace ash |
OLD | NEW |