| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/common/system/tray/default_system_tray_delegate.h" | 5 #include "ash/common/system/tray/default_system_tray_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/common/system/networking_config_delegate.h" | 10 #include "ash/common/system/networking_config_delegate.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 DCHECK(info); | 37 DCHECK(info); |
| 38 info->severity = UpdateInfo::UPDATE_NONE; | 38 info->severity = UpdateInfo::UPDATE_NONE; |
| 39 info->update_required = true; | 39 info->update_required = true; |
| 40 info->factory_reset_required = false; | 40 info->factory_reset_required = false; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool DefaultSystemTrayDelegate::ShouldShowSettings() { | 43 bool DefaultSystemTrayDelegate::ShouldShowSettings() { |
| 44 return true; | 44 return true; |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool DefaultSystemTrayDelegate::ShouldShowDisplayNotification() { | |
| 48 return false; | |
| 49 } | |
| 50 | |
| 51 void DefaultSystemTrayDelegate::ToggleBluetooth() { | 47 void DefaultSystemTrayDelegate::ToggleBluetooth() { |
| 52 bluetooth_enabled_ = !bluetooth_enabled_; | 48 bluetooth_enabled_ = !bluetooth_enabled_; |
| 53 } | 49 } |
| 54 | 50 |
| 55 bool DefaultSystemTrayDelegate::IsBluetoothDiscovering() { | 51 bool DefaultSystemTrayDelegate::IsBluetoothDiscovering() { |
| 56 return false; | 52 return false; |
| 57 } | 53 } |
| 58 | 54 |
| 59 bool DefaultSystemTrayDelegate::GetBluetoothAvailable() { | 55 bool DefaultSystemTrayDelegate::GetBluetoothAvailable() { |
| 60 return true; | 56 return true; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 std::unique_ptr<VolumeControlDelegate> delegate) { | 73 std::unique_ptr<VolumeControlDelegate> delegate) { |
| 78 volume_control_delegate_ = std::move(delegate); | 74 volume_control_delegate_ = std::move(delegate); |
| 79 } | 75 } |
| 80 | 76 |
| 81 int DefaultSystemTrayDelegate::GetSystemTrayMenuWidth() { | 77 int DefaultSystemTrayDelegate::GetSystemTrayMenuWidth() { |
| 82 // This is the default width for English languages. | 78 // This is the default width for English languages. |
| 83 return 300; | 79 return 300; |
| 84 } | 80 } |
| 85 | 81 |
| 86 } // namespace ash | 82 } // namespace ash |
| OLD | NEW |