caption_bubble_context_ash.cc 748 B

123456789101112131415161718192021222324252627
  1. // Copyright 2021 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/accessibility/caption_bubble_context_ash.h"
  5. #include "ash/shell.h"
  6. #include "ash/wm/work_area_insets.h"
  7. namespace ash {
  8. namespace captions {
  9. CaptionBubbleContextAsh::CaptionBubbleContextAsh() = default;
  10. CaptionBubbleContextAsh::~CaptionBubbleContextAsh() = default;
  11. absl::optional<gfx::Rect> CaptionBubbleContextAsh::GetBounds() const {
  12. return WorkAreaInsets::ForWindow(Shell::GetRootWindowForNewWindows())
  13. ->user_work_area_bounds();
  14. }
  15. bool CaptionBubbleContextAsh::IsActivatable() const {
  16. return false;
  17. }
  18. } // namespace captions
  19. } // namespace ash