Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: ui/ozone/platform/dri/dri_window.h

Issue 873563002: [Ozone] Constrain the cursor when overscan insets are set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | ui/ozone/platform/dri/dri_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window.h
diff --git a/ui/ozone/platform/dri/dri_window.h b/ui/ozone/platform/dri/dri_window.h
index cc6b9c54757f508ee88407d49f0ac603b0a7ca34..5d5072d78cbacd3511149ca02d31f28eceb099f6 100644
--- a/ui/ozone/platform/dri/dri_window.h
+++ b/ui/ozone/platform/dri/dri_window.h
@@ -39,6 +39,8 @@ class DriWindow : public PlatformWindow,
gfx::AcceleratedWidget GetAcceleratedWidget();
+ gfx::Rect GetCursorConfinedBounds() const;
+
// PlatformWindow:
void Show() override;
void Hide() override;
@@ -53,6 +55,7 @@ class DriWindow : public PlatformWindow,
void Restore() override;
void SetCursor(PlatformCursor cursor) override;
void MoveCursorTo(const gfx::Point& location) override;
+ void ConfineCursorToBounds(const gfx::Rect& bounds) override;
// PlatformEventDispatcher:
bool CanDispatchEvent(const PlatformEvent& event) override;
@@ -75,6 +78,8 @@ class DriWindow : public PlatformWindow,
gfx::Rect bounds_;
gfx::AcceleratedWidget widget_;
+ gfx::Rect cursor_confined_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(DriWindow);
};
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | ui/ozone/platform/dri/dri_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698