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

Unified Diff: ash/common/system/user/user_card_view.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/user/tray_user_unittest.cc ('k') | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/user_card_view.h
diff --git a/ash/common/system/user/user_card_view.h b/ash/common/system/user/user_card_view.h
deleted file mode 100644
index fa20e0a30dd5481bc5faf1e5241e4160837bae53..0000000000000000000000000000000000000000
--- a/ash/common/system/user/user_card_view.h
+++ /dev/null
@@ -1,60 +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_USER_USER_CARD_VIEW_H_
-#define ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_
-
-#include "ash/common/media_controller.h"
-#include "base/macros.h"
-#include "ui/views/view.h"
-
-namespace views {
-class BoxLayout;
-class ImageView;
-class Label;
-}
-
-namespace ash {
-
-enum class LoginStatus;
-
-namespace tray {
-
-// The view displaying information about the user, such as user's avatar, email
-// address, name, and more. View has no borders.
-class UserCardView : public views::View, public MediaCaptureObserver {
- public:
- // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC.
- UserCardView(LoginStatus login_status, int max_width, int user_index);
- ~UserCardView() override;
-
- // View:
- void PaintChildren(const ui::PaintContext& context) override;
- void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
-
- // MediaCaptureObserver:
- void OnMediaCaptureChanged(
- const std::vector<mojom::MediaCaptureState>& capture_states) override;
-
- private:
- // Creates the content for the public mode.
- void AddPublicModeUserContent(int max_width);
-
- void AddUserContent(views::BoxLayout* layout, LoginStatus login_status);
-
- bool is_active_user() const { return !user_index_; }
-
- int user_index_;
-
- views::Label* user_name_;
- views::Label* media_capture_label_;
- views::ImageView* media_capture_icon_;
-
- DISALLOW_COPY_AND_ASSIGN(UserCardView);
-};
-
-} // namespace tray
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_
« no previous file with comments | « ash/common/system/user/tray_user_unittest.cc ('k') | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698