platform_window.cc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Copyright 2019 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 "ui/platform_window/platform_window.h"
  5. #include <string>
  6. #include "ui/gfx/geometry/insets.h"
  7. #include "ui/gfx/geometry/rect.h"
  8. namespace ui {
  9. PlatformWindow::PlatformWindow() = default;
  10. PlatformWindow::~PlatformWindow() = default;
  11. bool PlatformWindow::ShouldWindowContentsBeTransparent() const {
  12. return false;
  13. }
  14. void PlatformWindow::SetZOrderLevel(ZOrderLevel order) {}
  15. ZOrderLevel PlatformWindow::GetZOrderLevel() const {
  16. return ZOrderLevel::kNormal;
  17. }
  18. void PlatformWindow::StackAbove(gfx::AcceleratedWidget widget) {}
  19. void PlatformWindow::StackAtTop() {}
  20. void PlatformWindow::FlashFrame(bool flash_frame) {}
  21. void PlatformWindow::SetShape(std::unique_ptr<ShapeRects> native_shape,
  22. const gfx::Transform& transform) {}
  23. void PlatformWindow::SetAspectRatio(const gfx::SizeF& aspect_ratio) {}
  24. void PlatformWindow::SetWindowIcons(const gfx::ImageSkia& window_icon,
  25. const gfx::ImageSkia& app_icon) {}
  26. bool PlatformWindow::IsAnimatingClosed() const {
  27. return false;
  28. }
  29. bool PlatformWindow::IsTranslucentWindowOpacitySupported() const {
  30. return false;
  31. }
  32. void PlatformWindow::SetOpacity(float opacity) {}
  33. void PlatformWindow::SetVisibilityChangedAnimationsEnabled(bool enabled) {}
  34. std::string PlatformWindow::GetWindowUniqueId() const {
  35. return std::string();
  36. }
  37. bool PlatformWindow::ShouldUpdateWindowShape() const {
  38. return false;
  39. }
  40. bool PlatformWindow::CanSetDecorationInsets() const {
  41. return false;
  42. }
  43. void PlatformWindow::SetDecorationInsets(const gfx::Insets* insets_px) {}
  44. void PlatformWindow::SetOpaqueRegion(const std::vector<gfx::Rect>* region_px) {}
  45. void PlatformWindow::SetInputRegion(const gfx::Rect* region_px) {}
  46. bool PlatformWindow::IsClientControlledWindowMovementSupported() const {
  47. return true;
  48. }
  49. void PlatformWindow::NotifyStartupComplete(const std::string& startup_id) {}
  50. } // namespace ui