| 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/settings/tray_settings.h" | 5 #include "ash/system/settings/tray_settings.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/tray/system_tray_delegate.h" | 8 #include "ash/system/tray/system_tray_delegate.h" |
| 9 #include "ash/system/tray/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
| 10 #include "ash/system/tray/tray_views.h" | 10 #include "ash/system/tray/tray_views.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class SettingsView : public ash::internal::ActionableView { | 27 class SettingsView : public ash::internal::ActionableView { |
| 28 public: | 28 public: |
| 29 SettingsView() { | 29 SettingsView() { |
| 30 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal, | 30 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal, |
| 31 ash::kTrayPopupPaddingHorizontal, 0, | 31 ash::kTrayPopupPaddingHorizontal, 0, |
| 32 ash::kTrayPopupPaddingBetweenItems)); | 32 ash::kTrayPopupPaddingBetweenItems)); |
| 33 | 33 |
| 34 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 34 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 35 views::ImageView* icon = | 35 views::ImageView* icon = |
| 36 new ash::internal::FixedSizedImageView(0, ash::kTrayPopupItemHeight); | 36 new ash::internal::FixedSizedImageView(0, ash::kTrayPopupItemHeight); |
| 37 icon->SetImage(rb.GetImageNamed(IDR_AURA_UBER_TRAY_SETTINGS).ToSkBitmap()); | 37 icon->SetImage(rb.GetImageNamed(IDR_AURA_UBER_TRAY_SETTINGS).ToImageSkia()); |
| 38 AddChildView(icon); | 38 AddChildView(icon); |
| 39 | 39 |
| 40 string16 text = rb.GetLocalizedString( | 40 string16 text = rb.GetLocalizedString( |
| 41 IDS_ASH_STATUS_TRAY_SETTINGS_AND_HELP); | 41 IDS_ASH_STATUS_TRAY_SETTINGS_AND_HELP); |
| 42 label_ = new views::Label(text); | 42 label_ = new views::Label(text); |
| 43 AddChildView(label_); | 43 AddChildView(label_); |
| 44 | 44 |
| 45 SetAccessibleName(text); | 45 SetAccessibleName(text); |
| 46 } | 46 } |
| 47 | 47 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 void TraySettings::DestroyDetailedView() { | 93 void TraySettings::DestroyDetailedView() { |
| 94 } | 94 } |
| 95 | 95 |
| 96 void TraySettings::UpdateAfterLoginStatusChange(user::LoginStatus status) { | 96 void TraySettings::UpdateAfterLoginStatusChange(user::LoginStatus status) { |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace internal | 99 } // namespace internal |
| 100 } // namespace ash | 100 } // namespace ash |
| OLD | NEW |