summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h')
-rw-r--r--chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h b/chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h
index 2970549dd09..77eaa71794d 100644
--- a/chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h
+++ b/chromium/ui/ozone/platform/wayland/host/shell_popup_wrapper.h
@@ -11,6 +11,7 @@
namespace ui {
class WaylandConnection;
+class WaylandWindow;
enum class MenuType {
TYPE_RIGHT_CLICK,
@@ -73,11 +74,21 @@ class ShellPopupWrapper {
// Initializes the popup surface.
virtual bool Initialize(WaylandConnection* connection,
const gfx::Rect& bounds) = 0;
+
+ // Sends acknowledge configure event back to wayland.
+ virtual void AckConfigure(uint32_t serial) = 0;
+
+ MenuType GetMenuTypeForPositioner(WaylandConnection* connection,
+ WaylandWindow* parent_window) const;
+ bool CanGrabPopup(WaylandConnection* connection) const;
};
gfx::Rect GetAnchorRect(MenuType menu_type,
const gfx::Rect& menu_bounds,
const gfx::Rect& parent_window_bounds);
+WlAnchor GetAnchor(MenuType menu_type, const gfx::Rect& bounds);
+WlGravity GetGravity(MenuType menu_type, const gfx::Rect& bounds);
+WlConstraintAdjustment GetConstraintAdjustment(MenuType menu_type);
} // namespace ui