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

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

Issue 9585012: ash uber tray: Make the user-card float a few pixels above the rest of the items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/tray_empty.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/system/tray/tray_empty.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698