| 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 "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 *session_start_time = session_start_time_; | 602 *session_start_time = session_start_time_; |
| 603 return have_session_start_time_; | 603 return have_session_start_time_; |
| 604 } | 604 } |
| 605 | 605 |
| 606 bool SystemTrayDelegateChromeOS::GetSessionLengthLimit( | 606 bool SystemTrayDelegateChromeOS::GetSessionLengthLimit( |
| 607 base::TimeDelta* session_length_limit) { | 607 base::TimeDelta* session_length_limit) { |
| 608 *session_length_limit = session_length_limit_; | 608 *session_length_limit = session_length_limit_; |
| 609 return have_session_length_limit_; | 609 return have_session_length_limit_; |
| 610 } | 610 } |
| 611 | 611 |
| 612 int SystemTrayDelegateChromeOS::GetSystemTrayMenuWidth() { |
| 613 return l10n_util::GetLocalizedContentsWidthInPixels( |
| 614 IDS_SYSTEM_TRAY_MENU_BUBBLE_WIDTH_PIXELS); |
| 615 } |
| 616 |
| 612 void SystemTrayDelegateChromeOS::ActiveUserWasChanged() { | 617 void SystemTrayDelegateChromeOS::ActiveUserWasChanged() { |
| 613 SetProfile(ProfileManager::GetActiveUserProfile()); | 618 SetProfile(ProfileManager::GetActiveUserProfile()); |
| 614 GetSystemTrayNotifier()->NotifyUserUpdate(); | 619 GetSystemTrayNotifier()->NotifyUserUpdate(); |
| 615 } | 620 } |
| 616 | 621 |
| 617 bool SystemTrayDelegateChromeOS::IsSearchKeyMappedToCapsLock() { | 622 bool SystemTrayDelegateChromeOS::IsSearchKeyMappedToCapsLock() { |
| 618 return search_key_mapped_to_ == input_method::kCapsLockKey; | 623 return search_key_mapped_to_ == input_method::kCapsLockKey; |
| 619 } | 624 } |
| 620 | 625 |
| 621 void SystemTrayDelegateChromeOS::AddCustodianInfoTrayObserver( | 626 void SystemTrayDelegateChromeOS::AddCustodianInfoTrayObserver( |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " | 1108 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " |
| 1104 << "ENABLE_SUPERVISED_USERS undefined."; | 1109 << "ENABLE_SUPERVISED_USERS undefined."; |
| 1105 return base::string16(); | 1110 return base::string16(); |
| 1106 } | 1111 } |
| 1107 | 1112 |
| 1108 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { | 1113 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { |
| 1109 return new SystemTrayDelegateChromeOS(); | 1114 return new SystemTrayDelegateChromeOS(); |
| 1110 } | 1115 } |
| 1111 | 1116 |
| 1112 } // namespace chromeos | 1117 } // namespace chromeos |
| OLD | NEW |