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

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

Issue 2162153002: Added Ash.SystemMenu.DefaultView.VisibleItems histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the COUNT value from the SystemMenuDefaultViewRows enum. Created 4 years, 5 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/common/system/tray/tray_empty.h ('k') | ash/common/system/tray/tray_image_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_empty.cc
diff --git a/ash/common/system/tray/tray_empty.cc b/ash/common/system/tray/tray_empty.cc
deleted file mode 100644
index 05261a0f9be90db26b2aba390d9563d675eed2b2..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/tray_empty.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// 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/common/system/tray/tray_empty.h"
-
-#include "ui/views/background.h"
-#include "ui/views/border.h"
-#include "ui/views/layout/box_layout.h"
-#include "ui/views/view.h"
-
-namespace {
-
-class EmptyBackground : public views::Background {
- public:
- EmptyBackground() {}
- ~EmptyBackground() override {}
-
- private:
- void Paint(gfx::Canvas* canvas, views::View* view) const override {}
-
- DISALLOW_COPY_AND_ASSIGN(EmptyBackground);
-};
-}
-
-namespace ash {
-
-TrayEmpty::TrayEmpty(SystemTray* system_tray) : SystemTrayItem(system_tray) {}
-
-TrayEmpty::~TrayEmpty() {}
-
-views::View* TrayEmpty::CreateTrayView(LoginStatus status) {
- return NULL;
-}
-
-views::View* TrayEmpty::CreateDefaultView(LoginStatus status) {
- if (status == LoginStatus::NOT_LOGGED_IN)
- return NULL;
-
- views::View* view = new views::View;
- view->set_background(new EmptyBackground());
- view->SetBorder(views::Border::CreateEmptyBorder(10, 0, 0, 0));
- view->SetLayoutManager(
- new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0));
- view->SetPaintToLayer(true);
- view->layer()->SetFillsBoundsOpaquely(false);
- return view;
-}
-
-views::View* TrayEmpty::CreateDetailedView(LoginStatus status) {
- return NULL;
-}
-
-void TrayEmpty::DestroyTrayView() {}
-
-void TrayEmpty::DestroyDefaultView() {}
-
-void TrayEmpty::DestroyDetailedView() {}
-
-void TrayEmpty::UpdateAfterLoginStatusChange(LoginStatus status) {}
-
-} // namespace ash
« no previous file with comments | « ash/common/system/tray/tray_empty.h ('k') | ash/common/system/tray/tray_image_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698