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" |
11 #include "ash/common/system/volume_control_delegate.h" | 11 #include "ash/common/system/volume_control_delegate.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 | 16 |
17 DefaultSystemTrayDelegate::DefaultSystemTrayDelegate() | 17 DefaultSystemTrayDelegate::DefaultSystemTrayDelegate() |
18 : bluetooth_enabled_(true) { | 18 : bluetooth_enabled_(true) {} |
19 } | |
20 | 19 |
21 DefaultSystemTrayDelegate::~DefaultSystemTrayDelegate() { | 20 DefaultSystemTrayDelegate::~DefaultSystemTrayDelegate() {} |
22 } | |
23 | 21 |
24 bool DefaultSystemTrayDelegate::GetTrayVisibilityOnStartup() { | 22 bool DefaultSystemTrayDelegate::GetTrayVisibilityOnStartup() { |
25 return true; | 23 return true; |
26 } | 24 } |
27 | 25 |
28 LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const { | 26 LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const { |
29 return LoginStatus::USER; | 27 return LoginStatus::USER; |
30 } | 28 } |
31 | 29 |
32 std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const { | 30 std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::unique_ptr<VolumeControlDelegate> delegate) { | 81 std::unique_ptr<VolumeControlDelegate> delegate) { |
84 volume_control_delegate_ = std::move(delegate); | 82 volume_control_delegate_ = std::move(delegate); |
85 } | 83 } |
86 | 84 |
87 int DefaultSystemTrayDelegate::GetSystemTrayMenuWidth() { | 85 int DefaultSystemTrayDelegate::GetSystemTrayMenuWidth() { |
88 // This is the default width for English languages. | 86 // This is the default width for English languages. |
89 return 300; | 87 return 300; |
90 } | 88 } |
91 | 89 |
92 } // namespace ash | 90 } // namespace ash |
OLD | NEW |