Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: ash/system/settings/tray_settings.cc

Issue 10382144: Change SetImage, SetBackground, and SetToggledImage to take in a gfx::ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/network/tray_sms.cc ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/system/network/tray_sms.cc ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698