OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/screen_security/screen_tray_item.h" | 5 #include "ash/system/chromeos/screen_security/screen_tray_item.h" |
6 | 6 |
7 #include "ash/system/tray/fixed_sized_image_view.h" | 7 #include "ash/system/tray/fixed_sized_image_view.h" |
8 #include "ash/system/tray/tray_constants.h" | 8 #include "ash/system/tray/tray_constants.h" |
9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
10 #include "ui/message_center/message_center.h" | 10 #include "ui/message_center/message_center.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 | 110 |
111 ScreenNotificationDelegate::ScreenNotificationDelegate( | 111 ScreenNotificationDelegate::ScreenNotificationDelegate( |
112 ScreenTrayItem* screen_tray) | 112 ScreenTrayItem* screen_tray) |
113 : screen_tray_(screen_tray) { | 113 : screen_tray_(screen_tray) { |
114 } | 114 } |
115 | 115 |
116 ScreenNotificationDelegate::~ScreenNotificationDelegate() { | 116 ScreenNotificationDelegate::~ScreenNotificationDelegate() { |
117 } | 117 } |
118 | 118 |
119 void ScreenNotificationDelegate::Display() { | |
120 } | |
121 | |
122 void ScreenNotificationDelegate::Error() { | |
123 } | |
124 | |
125 void ScreenNotificationDelegate::Close(bool by_user) { | |
126 } | |
127 | |
128 void ScreenNotificationDelegate::Click() { | |
129 } | |
130 | |
131 void ScreenNotificationDelegate::ButtonClick(int button_index) { | 119 void ScreenNotificationDelegate::ButtonClick(int button_index) { |
132 DCHECK_EQ(0, button_index); | 120 DCHECK_EQ(0, button_index); |
133 screen_tray_->Stop(); | 121 screen_tray_->Stop(); |
134 } | 122 } |
135 | 123 |
136 } // namespace tray | 124 } // namespace tray |
137 | 125 |
138 ScreenTrayItem::ScreenTrayItem(SystemTray* system_tray) | 126 ScreenTrayItem::ScreenTrayItem(SystemTray* system_tray) |
139 : SystemTrayItem(system_tray), | 127 : SystemTrayItem(system_tray), |
140 tray_view_(NULL), | 128 tray_view_(NULL), |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 views::BoxLayout::Orientation layout = | 190 views::BoxLayout::Orientation layout = |
203 (alignment == ash::SHELF_ALIGNMENT_BOTTOM || | 191 (alignment == ash::SHELF_ALIGNMENT_BOTTOM || |
204 alignment == ash::SHELF_ALIGNMENT_TOP) | 192 alignment == ash::SHELF_ALIGNMENT_TOP) |
205 ? views::BoxLayout::kHorizontal | 193 ? views::BoxLayout::kHorizontal |
206 : views::BoxLayout::kVertical; | 194 : views::BoxLayout::kVertical; |
207 tray_view_->SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0)); | 195 tray_view_->SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0)); |
208 tray_view_->Layout(); | 196 tray_view_->Layout(); |
209 } | 197 } |
210 | 198 |
211 } // namespace ash | 199 } // namespace ash |
OLD | NEW |