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

Unified Diff: ash/common/system/chromeos/supervised/tray_supervised_user.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 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
Index: ash/common/system/chromeos/supervised/tray_supervised_user.h
diff --git a/ash/common/system/chromeos/supervised/tray_supervised_user.h b/ash/common/system/chromeos/supervised/tray_supervised_user.h
deleted file mode 100644
index a066fe869a9268e1791ccd9468d88dac4b5eddbb..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/supervised/tray_supervised_user.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef ASH_COMMON_SYSTEM_CHROMEOS_SUPERVISED_TRAY_SUPERVISED_USER_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_SUPERVISED_TRAY_SUPERVISED_USER_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/system/chromeos/supervised/custodian_info_tray_observer.h"
-#include "ash/common/system/tray/system_tray_item.h"
-#include "ash/common/system/tray/view_click_listener.h"
-#include "base/macros.h"
-#include "base/strings/string16.h"
-
-namespace ash {
-class LabelTrayView;
-class SystemTray;
-
-class ASH_EXPORT TraySupervisedUser : public SystemTrayItem,
- public ViewClickListener,
- public CustodianInfoTrayObserver {
- public:
- explicit TraySupervisedUser(SystemTray* system_tray);
- ~TraySupervisedUser() override;
-
- // If message is not empty updates content of default view, otherwise hides
- // tray items.
- void UpdateMessage();
-
- // Overridden from SystemTrayItem.
- views::View* CreateDefaultView(LoginStatus status) override;
- void DestroyDefaultView() override;
- void UpdateAfterLoginStatusChange(LoginStatus status) override;
-
- // Overridden from ViewClickListener.
- void OnViewClicked(views::View* sender) override;
-
- // Overridden from CustodianInfoTrayObserver:
- void OnCustodianInfoChanged() override;
-
- private:
- friend class TraySupervisedUserTest;
-
- static const char kNotificationId[];
-
- void CreateOrUpdateNotification(const base::string16& new_message);
-
- void CreateOrUpdateSupervisedWarningNotification();
-
- int GetSupervisedUserIconId() const;
-
- LabelTrayView* tray_view_;
-
- // Previous login status to avoid showing notification upon unlock.
- LoginStatus status_;
-
- // Previous user supervised state to avoid showing notification upon unlock.
- bool is_user_supervised_;
-
- DISALLOW_COPY_AND_ASSIGN(TraySupervisedUser);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_SUPERVISED_TRAY_SUPERVISED_USER_H_

Powered by Google App Engine
This is Rietveld 408576698