| 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/tray/tray_notification_view.h" | 5 #include "ash/system/tray/tray_notification_view.h" |
| 6 | 6 |
| 7 #include "ash/system/tray/system_tray_item.h" | 7 #include "ash/system/tray/system_tray_item.h" |
| 8 #include "ash/system/tray/tray_constants.h" | 8 #include "ash/system/tray/tray_constants.h" |
| 9 #include "grit/ash_strings.h" | 9 #include "grit/ash_strings.h" |
| 10 #include "grit/ui_resources.h" | 10 #include "grit/ui_resources.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/gfx/image/image_skia.h" | 12 #include "ui/gfx/image/image_skia.h" |
| 13 #include "ui/views/background.h" | 13 #include "ui/views/background.h" |
| 14 #include "ui/views/controls/button/image_button.h" | 14 #include "ui/views/controls/button/image_button.h" |
| 15 #include "ui/views/controls/image_view.h" | 15 #include "ui/views/controls/image_view.h" |
| 16 #include "ui/views/layout/grid_layout.h" | 16 #include "ui/views/layout/grid_layout.h" |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 namespace internal { | |
| 20 | 19 |
| 21 TrayNotificationView::TrayNotificationView(SystemTrayItem* owner, int icon_id) | 20 TrayNotificationView::TrayNotificationView(SystemTrayItem* owner, int icon_id) |
| 22 : owner_(owner), | 21 : owner_(owner), |
| 23 icon_id_(icon_id), | 22 icon_id_(icon_id), |
| 24 icon_(NULL) { | 23 icon_(NULL) { |
| 25 } | 24 } |
| 26 | 25 |
| 27 TrayNotificationView::~TrayNotificationView() { | 26 TrayNotificationView::~TrayNotificationView() { |
| 28 } | 27 } |
| 29 | 28 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void TrayNotificationView::HandleClose() { | 160 void TrayNotificationView::HandleClose() { |
| 162 OnClose(); | 161 OnClose(); |
| 163 owner_->HideNotificationView(); | 162 owner_->HideNotificationView(); |
| 164 } | 163 } |
| 165 | 164 |
| 166 void TrayNotificationView::HandleClickAction() { | 165 void TrayNotificationView::HandleClickAction() { |
| 167 HandleClose(); | 166 HandleClose(); |
| 168 OnClickAction(); | 167 OnClickAction(); |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace internal | |
| 172 } // namespace ash | 170 } // namespace ash |
| OLD | NEW |