Index: ash/system/tray/tray_empty.cc |
diff --git a/ash/system/tray/tray_empty.cc b/ash/system/tray/tray_empty.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d10c5953397c0d721479473ea49c76c9b006c73a |
--- /dev/null |
+++ b/ash/system/tray/tray_empty.cc |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ash/system/tray/tray_empty.h" |
+ |
+#include "ui/views/layout/box_layout.h" |
+#include "ui/views/view.h" |
+ |
+namespace ash { |
+namespace internal { |
+ |
+TrayEmpty::TrayEmpty() {} |
+ |
+TrayEmpty::~TrayEmpty() {} |
+ |
+views::View* TrayEmpty::CreateTrayView(user::LoginStatus status) { |
+ return NULL; |
+} |
+ |
+views::View* TrayEmpty::CreateDefaultView(user::LoginStatus status) { |
+ views::View* view = new views::View; |
+ |
+ view->set_background(views::Background::CreateSolidBackground( |
+ SkColorSetARGB(0, 0, 0, 0))); |
+ view->set_border(views::Border::CreateEmptyBorder(10, 0, 0, 0)); |
+ view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, |
+ 0, 0, 0)); |
+ |
+ return view; |
+} |
+ |
+views::View* TrayEmpty::CreateDetailedView(user::LoginStatus status) { |
+ return NULL; |
+} |
+ |
+void TrayEmpty::DestroyTrayView() {} |
+ |
+void TrayEmpty::DestroyDefaultView() {} |
+ |
+void TrayEmpty::DestroyDetailedView() {} |
+ |
+} // namespace internal |
+} // namespace ash |