arc_resize_lock_type.h 941 B

1234567891011121314151617181920212223242526272829
  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. #ifndef ASH_PUBLIC_CPP_ARC_RESIZE_LOCK_TYPE_H_
  5. #define ASH_PUBLIC_CPP_ARC_RESIZE_LOCK_TYPE_H_
  6. namespace ash {
  7. // Represents how strictly resize operations are limited for a window.
  8. // This class must strictly corresponds to the resize_lock_type enum in the
  9. // wayland remote surface protocol.
  10. enum class ArcResizeLockType {
  11. // ResizeLock is disabled and the window follows normal resizability.
  12. NONE = 0,
  13. // Resizing is enabled and resize lock type is togglable.
  14. RESIZE_ENABLED_TOGGLABLE = 1,
  15. // Resizing is disabled and resize lock type is togglable.
  16. RESIZE_DISABLED_TOGGLABLE = 2,
  17. // Resizing is disabled and resize lock type is not togglable.
  18. RESIZE_DISABLED_NONTOGGLABLE = 3,
  19. };
  20. } // namespace ash
  21. #endif // ASH_PUBLIC_CPP_ARC_RESIZE_LOCK_TYPE_H_