notification_center_tray.cc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/system/notification_center/notification_center_tray.h"
  5. #include <string>
  6. #include "ash/shelf/shelf.h"
  7. #include "ash/system/tray/tray_background_view.h"
  8. #include "ash/system/tray/tray_bubble_view.h"
  9. #include "ui/base/metadata/metadata_header_macros.h"
  10. #include "ui/base/metadata/metadata_impl_macros.h"
  11. #include "ui/views/layout/flex_layout.h"
  12. namespace ash {
  13. NotificationCenterTray::NotificationCenterTray(Shelf* shelf)
  14. : TrayBackgroundView(shelf, RoundedCornerBehavior::kStartRounded) {
  15. SetLayoutManager(std::make_unique<views::FlexLayout>());
  16. }
  17. NotificationCenterTray::~NotificationCenterTray() = default;
  18. std::u16string NotificationCenterTray::GetAccessibleNameForTray() {
  19. return std::u16string();
  20. }
  21. void NotificationCenterTray::HandleLocaleChange() {}
  22. void NotificationCenterTray::HideBubbleWithView(
  23. const TrayBubbleView* bubble_view) {}
  24. void NotificationCenterTray::ClickedOutsideBubble() {
  25. CloseBubble();
  26. }
  27. void NotificationCenterTray::CloseBubble() {}
  28. void NotificationCenterTray::ShowBubble() {}
  29. void NotificationCenterTray::UpdateAfterLoginStatusChange() {}
  30. TrayBubbleView* NotificationCenterTray::GetBubbleView() {
  31. return nullptr;
  32. }
  33. views::Widget* NotificationCenterTray::GetBubbleWidget() const {
  34. return nullptr;
  35. }
  36. BEGIN_METADATA(NotificationCenterTray, TrayBackgroundView)
  37. END_METADATA
  38. } // namespace ash