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

Side by Side Diff: ash/system/chromeos/network/tray_sms.cc

Issue 175893004: Land image assets for https://codereview.chromium.org/148003003/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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/chromeos/network/tray_sms.h" 5 #include "ash/system/chromeos/network/tray_sms.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/fixed_sized_scroll_view.h" 8 #include "ash/system/tray/fixed_sized_scroll_view.h"
9 #include "ash/system/tray/system_tray.h" 9 #include "ash/system/tray/system_tray.h"
10 #include "ash/system/tray/system_tray_bubble.h" 10 #include "ash/system/tray/system_tray_bubble.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 owner_->RemoveMessage(index_); 120 owner_->RemoveMessage(index_);
121 owner_->Update(false); 121 owner_->Update(false);
122 } 122 }
123 123
124 private: 124 private:
125 void LayoutDetailedView() { 125 void LayoutDetailedView() {
126 views::ImageButton* close_button = new views::ImageButton(this); 126 views::ImageButton* close_button = new views::ImageButton(this);
127 close_button->SetImage( 127 close_button->SetImage(
128 views::CustomButton::STATE_NORMAL, 128 views::CustomButton::STATE_NORMAL,
129 ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed( 129 ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
130 IDR_AURA_WINDOW_CLOSE)); 130 IDR_AURA_UBER_TRAY_SMS_DISMISS));
131 const int msg_width = owner_->system_tray()->GetSystemBubble()-> 131 const int msg_width = owner_->system_tray()->GetSystemBubble()->
132 bubble_view()->GetPreferredSize().width() - 132 bubble_view()->GetPreferredSize().width() -
133 (kNotificationIconWidth + kTrayPopupPaddingHorizontal * 2); 133 (kNotificationIconWidth + kTrayPopupPaddingHorizontal * 2);
134 message_label_->SizeToFit(msg_width); 134 message_label_->SizeToFit(msg_width);
135 135
136 views::GridLayout* layout = new views::GridLayout(this); 136 views::GridLayout* layout = new views::GridLayout(this);
137 SetLayoutManager(layout); 137 SetLayoutManager(layout);
138 138
139 views::ColumnSet* columns = layout->AddColumnSet(0); 139 views::ColumnSet* columns = layout->AddColumnSet(0);
140 140
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 if (GetLatestMessage(&index, &number, &text)) 412 if (GetLatestMessage(&index, &number, &text))
413 notification_->Update(index, number, text); 413 notification_->Update(index, number, text);
414 } else if (notify) { 414 } else if (notify) {
415 ShowNotificationView(); 415 ShowNotificationView();
416 } 416 }
417 } 417 }
418 } 418 }
419 419
420 } // namespace internal 420 } // namespace internal
421 } // namespace ash 421 } // namespace ash
OLDNEW
« no previous file with comments | « ash/resources/default_200_percent/cros/status/status_sms_dismiss.png ('k') | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698