blob: 003e4cd1d0828888509027c2849cdd1825dd0806 [file] [log] [blame]
// Copyright 2013 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/ash_export.h"
#include "ash/system/tray/system_tray_item.h"
namespace ash {
// This tray item is showing an additional separator line between the logged in
// users and the rest of the system tray menu. The separator will only be shown
// when there are at least two users logged in.
class ASH_EXPORT TrayUserSeparator : public SystemTrayItem {
explicit TrayUserSeparator(SystemTray* system_tray);
virtual ~TrayUserSeparator() {}
// Returns true if the separator gets shown.
bool separator_shown() { return separator_shown_; }
// Overridden from SystemTrayItem.
virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
virtual void DestroyTrayView() OVERRIDE {}
virtual void DestroyDefaultView() OVERRIDE;
virtual void DestroyDetailedView() OVERRIDE {}
virtual void UpdateAfterLoginStatusChange(
user::LoginStatus status) OVERRIDE {}
virtual void UpdateAfterShelfAlignmentChange(
ShelfAlignment alignment) OVERRIDE {}
// True if the separator gets shown.
bool separator_shown_;
} // namespace ash