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

Unified Diff: ash/system/tray/tray_views.cc

Issue 10332152: Add TraySms for SMS messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bubble sizing code 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/tray_views.h ('k') | chromeos/dbus/gsm_sms_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_views.cc
diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
index 4874de5660a7415304ca04b9b230ec5484c8ccfb..62c7cda3f6b4a90e7651393eeedfbd92c0dde899 100644
--- a/ash/system/tray/tray_views.cc
+++ b/ash/system/tray/tray_views.cc
@@ -36,7 +36,6 @@ views::View* CreatePopupHeaderButtonsContainer() {
return view;
}
-const int kNotificationCloseButtonWidth = 60;
}
////////////////////////////////////////////////////////////////////////////////
@@ -470,13 +469,10 @@ void TrayNotificationView::InitView(views::View* contents) {
views::GridLayout* layout = new views::GridLayout(this);
SetLayoutManager(layout);
- AddChildView(contents);
-
views::ImageButton* close_button = new views::ImageButton(this);
close_button->SetImage(views::CustomButton::BS_NORMAL,
ResourceBundle::GetSharedInstance().GetBitmapNamed(
IDR_AURA_WINDOW_CLOSE));
- AddChildView(close_button);
int contents_width = kTrayPopupWidth - kNotificationCloseButtonWidth;
views::ColumnSet* columns = layout->AddColumnSet(0);
« no previous file with comments | « ash/system/tray/tray_views.h ('k') | chromeos/dbus/gsm_sms_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698